Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create placeholder variable values, even when no "provider" function is defined #17

Open
ErikWittern opened this issue Aug 26, 2020 · 0 comments

Comments

@ErikWittern
Copy link
Collaborator

As it stands, this library relies on provider functions / values to produce values for variables used in a generated query.

To make the library easier to use out of the box, the library could instead produce placeholder values, e.g.:

  • A small number like 10 or 10.0 for variables of type Int or Float
  • A string like "PLACEHOLDER" for variables of type String or ID
  • true for variables of type Boolean
  • Mock input objects whose leaf fields are filled with scalars as described above
ErikWittern added a commit to ErikWittern/graphql-query-generator that referenced this issue Aug 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant