graphql-engine/server/tests-py/queries/graphql_query/permissions/iregex.yaml
hasura-bot 7b31ff99d1 Support Postgres POSIX regex operators (close #4317) (#119)
Co-authored-by: christophediprima <dipdipdip84@gmail.com>
Co-authored-by: dip <dipdipdip84@gmail.com>
Co-authored-by: Auke Booij <auke@hasura.io>
Co-authored-by: Antoine Leblanc <antoine@hasura.io>
GITHUB_PR_NUMBER: 6172
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/6172
GitOrigin-RevId: 5192d238b527cd21b6efb2f74e279ecc34756c29
2020-11-27 10:54:52 +00:00

19 lines
401 B
YAML

- description: user can only select artists having name matching X-Hasura-iregex-artists
url: /v1/graphql
status: 200
headers:
X-Hasura-Role: user_iregex
X-Hasura-iregex-artists: "(.*ak)|(.*lla)"
response:
data:
Artist:
- name: Akon
- name: Camilla
query:
query: |
query {
Artist (order_by: {name: asc}) {
name
}
}