graphql-relay-js icon indicating copy to clipboard operation
graphql-relay-js copied to clipboard

A library to help construct a graphql-js server supporting react-relay.

Results 29 graphql-relay-js issues
Sort by recently updated
recently updated
newest added

https://github.com/graphql/graphql-relay-js/blob/7422cfe8ccd1c2cd3923c7e1d5f8b7533c0e3fdd/src/connection/arrayconnection.js#L120 If my connection args don't have the 'last' parameter, then hasPreviousPage will always be false. Same problem if you are paging backwards and don't have the 'first' parameter in...

In the case that you have a custom cursor defined via `resolveCursor`, I would think the generated pageInfo should also be run through it, else the `pageInfo.startCursor` / `pageInfo.endCursor` will...

bug

The [relay spec says](https://relay.dev/graphql/connections.htm#sec-undefined.PageInfo.Fields) that "`PageInfo` must contain fields `hasPreviousPage` and `hasNextPage`, both of which return _non‐null_ booleans. It must also contain fields `startCursor` and `endCursor`, both of which return...

I have a use case where I'd like to make a proper connection out of some data, and where the data itself represents edges, rather nodes. Essentially, imagine an API...

CLA Signed

## Summary Using forward pagination (first/after) with `connectionFromArray` results in incorrect `pageInfo`. ## Description From the relay [spec](https://relay.dev/graphql/connections.htm#HasPreviousPage()) `hasPreviousPage` states: > If the client is paginating with first/after, then the...

I recently dove headfirst into relay modern and whilst I was setting up my queries, I noticed my count fields were returning null in graphiQL. I had assumed connextionFromArray was...

I wrote a little about it [here](https://medium.com/@nijynot/foward-and-backward-pagination-arguments-are-equivalent-f1b4a01f3070), but basically `after = Math.max(before - last - 1, 0)`. So if you implement `first` and `after`, you automatically get the functionality of...

Hey, a pretty common situation is that getting the list of connected IDs is cheap (i.e. the list of the IDs of your friends), but resolving each ID is expensive....

I'm building graphQL service with [graphql-tools](https://github.com/apollostack/graphql-tools) which is a awesome tool that allows us do type definition with the [graphql schema](http://graphql.org/learn/schema/). I think it's better than just using api(e.g. [the...

Although there is a nice example in the tests I think it would be nice to document that in the readme file as well. What do you think?