This repository is deprecated in favor of Squid monorepo
GraphQL server for Hydra. Given hydra schema and compatible database it serves "read part" of OpenCRUD spec.
openreader schema.graphql
Database connection and server port are configured via environment variables:
DB_NAME
DB_USER
DB_PASS
DB_HOST
DB_PORT
GRAPHQL_SERVER_PORT
OpenReader is mostly compatible with previous warthog based implementation. Below is possibly incomplete list of edge cases where it differs.
- If two object types participate in a same union, then their properties must have either different names or have a same type (modulo nullability).
- Only camel case names of types and properties are allowed.
- Filtering on typed json fields works without
_json
operator. orderBy
argument of relay connection is required, only forward pagination is supported.RelayConnection.edges
,RelayConnection.edges.node
andFulltextSearch.item
fields do not support multiple aliases in GraphQL queries.