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
/** @gqlField */ export function nodes<T>(connection: Connection<T>): T[] { return connection.edge.map(edge => edge.node); }
Should act as a functional equivalent of a method on a generic class:
/** @gqlType */ class Connection<T> { // ... other fields/methods nodes(): T[] { return this.edges.map(edge => edge.node) } }
The text was updated successfully, but these errors were encountered:
We should also support the equivalent generics on static methods.
Sorry, something went wrong.
No branches or pull requests
Should act as a functional equivalent of a method on a generic class:
The text was updated successfully, but these errors were encountered: