Open
Description
Based on questions asked by the community, we need a guide on how to customise a GraphQL schema with views.
The following three points (from this issue: #335) need to be part of this guide:
Using views for
- Exposing a different subset of columns based on role (add as a sub-section to: https://docs.hasura.io/1.0/graphql/manual/queries/control-access.html)
- Data aggregations (link to SQL functions / views for advanced use cases)
- Joining tables (add a section on de-normalizing data with a view by joins: https://docs.hasura.io/1.0/graphql/manual/queries/derived-data.html)
- Using group_by (add a section: https://docs.hasura.io/1.0/graphql/manual/queries/derived-data.html)
Add more examples to documentation: https://docs.hasura.io/1.0/graphql/manual/schema/views.html#customise-schema-with-views.