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

Items in a list are non-unique when using examples #137

Open
pramodshri opened this issue Nov 28, 2020 · 2 comments
Open

Items in a list are non-unique when using examples #137

pramodshri opened this issue Nov 28, 2020 · 2 comments

Comments

@pramodshri
Copy link

For a graphql field with fake directives like below :

codes: [String] @listLength(min: 1, max: 3) @examples(values: ["1", "2", "3", "4", "5"])

i am getting duplicated results many times. Is there a way to tell the faker that i want the items to be unique?

@lypborges
Copy link

Would be nice if we have a way to pass a function that receive the params and return the fake data.

@fatadel
Copy link

fatadel commented Oct 6, 2021

I am also interested in getting distinct examples only. Have you got any response from the maintainers, @pramodshri?

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

3 participants