Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
interface
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LuckySwap
interface
Commits
140d59b8
Unverified
Commit
140d59b8
authored
Aug 19, 2022
by
cartcrom
Committed by
GitHub
Aug 19, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: updated schema (#4423)
updated schema
parent
85742c57
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
22 deletions
+22
-22
TokenPriceQuery.ts
src/graphql/data/TokenPriceQuery.ts
+1
-1
schema.graphql
src/graphql/data/schema.graphql
+21
-21
No files found.
src/graphql/data/TokenPriceQuery.ts
View file @
140d59b8
...
...
@@ -7,7 +7,7 @@ import type { Chain, TokenPriceQuery as TokenPriceQueryType } from './__generate
export
function
useTokenPriceQuery
(
address
:
string
,
timePeriod
:
TimePeriod
,
chain
:
Chain
)
{
const
tokenPrices
=
useLazyLoadQuery
<
TokenPriceQueryType
>
(
graphql
`
query TokenPriceQuery($contract: ContractInput) {
query TokenPriceQuery($contract: ContractInput
!
) {
tokenProjects(contracts: [$contract]) {
name
markets(currencies: [USD]) {
...
...
src/graphql/data/schema.graphql
View file @
140d59b8
"""This
directive
allows
results
to
be
deferred
during
execution
"""
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
called
.
This
directive
is
deprecated
use
@aws_susbscribe
directive
instead
.
...
...
@@ -23,22 +13,24 @@ directive @aws_publish(
)
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
(
"""
List
of
cognito
user
pool
groups
which
have
access
on
this
field
"""
cognito_groups
:
[
String
]
)
on
OBJECT
|
FIELD_DEFINITION
directive
@aws_lambda
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
a
n
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
."""
directive
@aws_subscribe
(
...
...
@@ -48,6 +40,14 @@ directive @aws_subscribe(
mutations
:
[
String
]
)
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
"""
directive
@aws_auth
(
"""
List
of
cognito
user
pool
groups
which
have
access
on
this
field
"""
...
...
@@ -283,8 +283,8 @@ type Portfolio {
}
type
Query
{
tokens
(
contracts
:
[
ContractInput
]
):
[
Token
]
tokenProjects
(
contracts
:
[
ContractInput
]
):
[
TokenProject
]
tokens
(
contracts
:
[
ContractInput
!]!
):
[
Token
]
tokenProjects
(
contracts
:
[
ContractInput
!]!
):
[
TokenProject
]
topTokenProjects
(
orderBy
:
MarketSortableField
,
page
:
Int
,
pageSize
:
Int
,
currency
:
Currency
):
[
TokenProject
]
searchTokens
(
searchQuery
:
String
!):
[
Token
]
assetActivities
(
address
:
String
!,
page
:
Int
,
pageSize
:
Int
):
[
AssetActivity
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment