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

feat(scalars): add support for custom scalar with arguments #30

Merged
merged 1 commit into from
Sep 24, 2020

Conversation

ardeois
Copy link
Owner

@ardeois ardeois commented Sep 24, 2020

Some casual.xxx generators can accept arguments.
To give more flexibility, the scalars config now accepts:

  • a string for retrocompatibility
  • an object {generator: string, arguments: any[]} to pass arguments to the casual function

@ardeois ardeois self-assigned this Sep 24, 2020
@ardeois ardeois force-pushed the feat/custom-scalar-args branch from 68d961d to 300929c Compare September 24, 2020 20:24
Some `casual.xxx` generators can accept arguments.
To give more flexibility, the `scalars` config now accepts:
- a string for retrocompatibility
- an object `{generator: string, arguments: any[]}` to pass arguments to the casual function
@ardeois ardeois force-pushed the feat/custom-scalar-args branch from 300929c to ea9694e Compare September 24, 2020 20:34
@ardeois ardeois marked this pull request as ready for review September 24, 2020 20:36
@ardeois ardeois added the minor Increment the minor version when merged label Sep 24, 2020
@ardeois ardeois merged commit 7dcc9cf into master Sep 24, 2020
@ardeois ardeois deleted the feat/custom-scalar-args branch September 24, 2020 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor Increment the minor version when merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant