Is the useAsyncGql limit
option supposed to work out of the box?
#190
Answered
by
Diizzayy
TheDutchCoder
asked this question in
Q&A
-
In the docs there's an example with a
The alternative syntax throws even more TS errors (no overload matches this call): const { data } = await useAsyncGql({
operation: 'getCollections',
variables: { limit: 2 }
}) |
Beta Was this translation helpful? Give feedback.
Answered by
Diizzayy
Sep 13, 2022
Replies: 1 comment 1 reply
-
@TheDutchCoder Indeed, it does in fact work out the box, however though it expects for there a be a query defined as seen below: query launches($limit: Int = 10) {
launches(limit: $limit, find: { mission_name: "Starlink" }) {
id
mission_name
}
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
TheDutchCoder
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@TheDutchCoder Indeed, it does in fact work out the box, however though it expects for there a be a query defined as seen below: