mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-19 21:41:44 +03:00
22 lines
591 B
YAML
22 lines
591 B
YAML
|
description: Define an action with headers configuration
|
||
|
url: /v1/query
|
||
|
status: 400
|
||
|
query:
|
||
|
type: create_action
|
||
|
args:
|
||
|
name: create_user_1
|
||
|
definition:
|
||
|
kind: synchronous
|
||
|
arguments:
|
||
|
- name: name
|
||
|
type: String!
|
||
|
output_type: User!
|
||
|
handler: http://127.0.0.1:5593/create-user
|
||
|
headers:
|
||
|
- name: x-client-id
|
||
|
value_from_env: HASURA_GRAPHQL_CLIENT_NAME
|
||
|
response:
|
||
|
path: $.definition.headers[0]
|
||
|
error: 'env variables starting with "HASURA_GRAPHQL_" are not allowed in value_from_env: HASURA_GRAPHQL_CLIENT_NAME'
|
||
|
code: parse-failed
|