Commit 140d59b8 authored by cartcrom's avatar cartcrom Committed by GitHub

fix: updated schema (#4423)

updated schema
parent 85742c57
...@@ -7,7 +7,7 @@ import type { Chain, TokenPriceQuery as TokenPriceQueryType } from './__generate ...@@ -7,7 +7,7 @@ import type { Chain, TokenPriceQuery as TokenPriceQueryType } from './__generate
export function useTokenPriceQuery(address: string, timePeriod: TimePeriod, chain: Chain) { export function useTokenPriceQuery(address: string, timePeriod: TimePeriod, chain: Chain) {
const tokenPrices = useLazyLoadQuery<TokenPriceQueryType>( const tokenPrices = useLazyLoadQuery<TokenPriceQueryType>(
graphql` graphql`
query TokenPriceQuery($contract: ContractInput) { query TokenPriceQuery($contract: ContractInput!) {
tokenProjects(contracts: [$contract]) { tokenProjects(contracts: [$contract]) {
name name
markets(currencies: [USD]) { markets(currencies: [USD]) {
......
"""This directive allows results to be deferred during execution""" """This directive allows results to be deferred during execution"""
directive @defer on FIELD directive @defer on FIELD
"""
Tells the service this field/object has access authorized by an API key.
"""
directive @aws_api_key on OBJECT | FIELD_DEFINITION
"""
Tells the service this field/object has access authorized by sigv4 signing.
"""
directive @aws_iam on OBJECT | FIELD_DEFINITION
""" """
Tells the service which subscriptions will be published to when this mutation is Tells the service which subscriptions will be published to when this mutation is
called. This directive is deprecated use @aws_susbscribe directive instead. called. This directive is deprecated use @aws_susbscribe directive instead.
...@@ -23,22 +13,24 @@ directive @aws_publish( ...@@ -23,22 +13,24 @@ directive @aws_publish(
) on FIELD_DEFINITION ) on FIELD_DEFINITION
""" """
Tells the service this field/object has access authorized by an OIDC token. Tells the service this field/object has access authorized by sigv4 signing.
""" """
directive @aws_oidc on OBJECT | FIELD_DEFINITION directive @aws_iam on OBJECT | FIELD_DEFINITION
""" """
Tells the service this field/object has access authorized by a Cognito User Pools token. Tells the service this field/object has access authorized by a Lambda Authorizer.
""" """
directive @aws_cognito_user_pools( directive @aws_lambda on OBJECT | FIELD_DEFINITION
"""List of cognito user pool groups which have access on this field"""
cognito_groups: [String]
) on OBJECT | FIELD_DEFINITION
""" """
Tells the service this field/object has access authorized by a Lambda Authorizer. Tells the service this field/object has access authorized by an API key.
""" """
directive @aws_lambda on OBJECT | FIELD_DEFINITION directive @aws_api_key on OBJECT | FIELD_DEFINITION
"""
Tells the service this field/object has access authorized by an OIDC token.
"""
directive @aws_oidc on OBJECT | FIELD_DEFINITION
"""Tells the service which mutation triggers this subscription.""" """Tells the service which mutation triggers this subscription."""
directive @aws_subscribe( directive @aws_subscribe(
...@@ -48,6 +40,14 @@ directive @aws_subscribe( ...@@ -48,6 +40,14 @@ directive @aws_subscribe(
mutations: [String] mutations: [String]
) on FIELD_DEFINITION ) on FIELD_DEFINITION
"""
Tells the service this field/object has access authorized by a Cognito User Pools token.
"""
directive @aws_cognito_user_pools(
"""List of cognito user pool groups which have access on this field"""
cognito_groups: [String]
) on OBJECT | FIELD_DEFINITION
"""Directs the schema to enforce authorization on a field""" """Directs the schema to enforce authorization on a field"""
directive @aws_auth( directive @aws_auth(
"""List of cognito user pool groups which have access on this field""" """List of cognito user pool groups which have access on this field"""
...@@ -283,8 +283,8 @@ type Portfolio { ...@@ -283,8 +283,8 @@ type Portfolio {
} }
type Query { type Query {
tokens(contracts: [ContractInput]): [Token] tokens(contracts: [ContractInput!]!): [Token]
tokenProjects(contracts: [ContractInput]): [TokenProject] tokenProjects(contracts: [ContractInput!]!): [TokenProject]
topTokenProjects(orderBy: MarketSortableField, page: Int, pageSize: Int, currency: Currency): [TokenProject] topTokenProjects(orderBy: MarketSortableField, page: Int, pageSize: Int, currency: Currency): [TokenProject]
searchTokens(searchQuery: String!): [Token] searchTokens(searchQuery: String!): [Token]
assetActivities(address: String!, page: Int, pageSize: Int): [AssetActivity] assetActivities(address: String!, page: Int, pageSize: Int): [AssetActivity]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment