We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
suggested by @5hanth in #2 Need to think how to describe Relay connections in IDL without requiring too much boilerplate.
The text was updated successfully, but these errors were encountered:
Hi @IvanGoncharov / @5hanth what are your thoughts on how to go about implementing this? To breakdown the problem I had the following thoughts
type Company { name: String @fake(type:companyName) employees( first: Int, after: String, last: Int, before: String, : EmployeeConnection @connection(options:{type: "relay"}) }
Approach 2: Detect if something is a connection using the same technique used by voyager
https://github.com/APIs-guru/graphql-voyager/blob/b2deb19bf8d82e0b496e1ad660823e61b5ce8772/src/introspection/introspection.ts#L135
if (!/.Connection$/.test(field.type.name)) return;
https://github.com/APIs-guru/graphql-faker/blob/7bce2980dccef21c1d121688cb741bff47ea2a45/src/fake_schema.ts#L180-L182
nodes
edges
If we can converge on an approach I can put in some time to help out with this.
Best, Soney
Sorry, something went wrong.
Any progress on this? Faking Relay connections would be super helpful for us! 🙂
No branches or pull requests
suggested by @5hanth in #2
Need to think how to describe Relay connections in IDL without requiring too much boilerplate.
The text was updated successfully, but these errors were encountered: