Skip to content

Build Query and variables separately #36

@JuanuMusic

Description

@JuanuMusic

Hi! Thanks a lot for this Library! It's a life saver.
However, I'm trying to use the Query with GraphQL.Client.

From the look of it, it seems that the problem is that the variables for the query are passed separated (as parameters) and the parameter definition on the query is just a $token that gets replaced with the variables on the requets to the server.

Do you think its a good idea to implement the builder in a way that it can generate 3 values?:

  • FullQuery (the current output of Build())
  • Query (the query with the replacement tokens instead of the values)
  • Arguments: The actual object with the arguments

I could start working on something like this, but im not sure if you might have a way to use the queries on GraophQL.Client without this change.

Cheers!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions