graphql-relay-py
graphql-relay-py copied to clipboard
A library to help construct a graphql-py server supporting react-relay
Related to this [issue](https://github.com/graphql-python/graphql-relay-py/issues/16) Adds a n+1 strategy for paginating connections which make paginating a lot more performant avoiding the need to call on list() or length() on the iterator...
It is possible to trivially add support for limiting the size of a return object. This is important because people might ask for 10,000 items and we need to enforce...
According to the spec, `hasNextPage` and `hasPreviousPage` should be set regardless of the pagination direction if they can be efficiently computed. Fixes #12
The current implementation requires you to pass the total length of the iterable, and this usually means making an extra query to find out the count. There's no need for...
I was trying to dig through this to figure it out, and I apologize if there's a good reason for this. It seems to me that a paginated connection (e.g....
While using the pageInfo `hasPreviousPage` and `hasNextPage` cursor based navigation (before and after), it seems these results are always set to False. The corresponding code (https://github.com/graphql-python/graphql-relay-py/blob/master/graphql_relay/connection/arrayconnection.py#L104-L105): ```python return connection_type( edges=edges,...
Im trying to have relay node compose the global id in a custom way for a specific type. Instead of using the id attribute of my object I want it...
I found `cursor_to_offset` function internally used. I know that I can define cursor myself, but I think there has to be a way to deal with predefined cursor. But there...
solves issue #12 corresponding MR on the Javascript version: https://github.com/graphql/graphql-relay-js/pull/388
I am working on improving how this package is bundled in [nixpkgs](https://github.com/NixOS/nixpkgs) and notice that both poetry and setuptools are declared as build dependencies in pyproject.toml. Also, there is a...