Zendro-dev / graphql-server-model-codegen

Command line utility to auto-generate the structure files for a graphql server
MIT License
1 stars 2 forks source link

Implement a "connection-helper" as specified in the GraphQL-Spec #148

Open asishallab opened 4 years ago

asishallab commented 4 years ago

In Zendro cursor based pagination returns a connection object adhering to the standard defined for GraphQL. See these sources:

In the first specification you find the example of a helper that implements a short-cut avoiding the explicit querying of edges->nodes and offers direct access to the records contained in a connection.

Implement this helper in Zendro using a reference to the very record-array used in the connection object. The reference ensures that computational resources, in this case memory, will not be exhausted.