Tag: gqlquery
-
Apollo Client gql lte, gte null values Issue
0 I have this query using to query from a graphql subgraph. I use apollo client in my Next.js front-end to query data. This is my query: const DOMAIN_FIELDS = gql` fragment DomainFields on Domain { expires id isListed name listingPrice listingExpiresAt lastSalePrice owner tokenId seller } `; export const GET_DOMAINS = gql` ${DOMAIN_FIELDS} query…
-
Problem with setTimeout when sending Graphql mutation in React
1 I had this problem. I need to divide the values from one form into two parts and send them to one address. graphql mutation calc($applicationRecipientsFilter: ApplicationRecipientsFilterInput) { create(applicationRecipientsFilter: $applicationRecipientsFilter) { id city { id name } applicationType recipients } } hooks const { mutate } = useMutation(calc); const addNewNotification = useCallback( async (args) =>…
-
How to pass specific key from `$data` into the nested graphql query?
0 There are publications and tags with many-to-many relations. Here’s schema.gql: input GetPublicationsDto { cursor: Int take: Int tagIds: [Int!] tagId: Int … } input GetTagsForDto { tagIds: [Int!] tagId: Int } type Query { publications(data: GetPublicationsDto!): [Publication!]! tagsFor(data: GetTagsForDto!): [Tag!]! } We see that GetPublicationsDto extends GetTagsForDto. Suppose we want to get publications by…