mirror of
https://github.com/atulmy/gql-query-builder.git
synced 2026-04-25 23:55:55 +03:00
[GH-ISSUE #12] support for primitive return types? #4
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/gql-query-builder#4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @albertalquisola on GitHub (May 27, 2019).
Original GitHub issue: https://github.com/atulmy/gql-query-builder/issues/12
Originally assigned to: @atulmy on GitHub.
it seems the builder expects an object to always be returned in a graphql response since the
fieldsarg is required. But what if the graphql server responds with a primitive? (eg. GraphQLBoolean)Example:
The result is a 400 since this is a malformed query string so it seems the query builder does not have support for handling primitive return values?
@atulmy commented on GitHub (May 28, 2019):
Check: https://github.com/atulmy/gql-query-builder/issues/8#issuecomment-481789433
@albertalquisola commented on GitHub (May 28, 2019):
I'm unsure how this addresses the issue? I dont need to specify a custom variable type (i dont think), I need my query output to not always expect an object being returned
@atulmy commented on GitHub (May 28, 2019):
Sorry got it, you want the
fieldsto be optional