Add support for prepared statements

This commit is contained in:
Vikram Rangnekar
2019-07-29 01:13:33 -04:00
parent 4c07ad1102
commit 2d8fc2b7e2
19 changed files with 493 additions and 63 deletions

38
config/allow.list Normal file
View File

@ -0,0 +1,38 @@
# http://localhost:808
query {
me {
id
full_name
}
}
query {
customers {
id
email
payments {
customer_id
amount
billing_details
}
}
}
# http://localhost:8080/
query {
products(id: $PRODUCT_ID) {
name
}
}
query {
products(id: $PRODUCT_ID) {
name
image
}
}

View File

@ -5,13 +5,21 @@ web_ui: true
# debug, info, warn, error, fatal, panic
log_level: "debug"
# enabling tracing also disables query caching
enable_tracing: true
# Disable this in development to get a list of
# queries used. When enabled super graph
# will only allow queries from this list
# List saved to ./config/allow.list
use_allow_list: false
# Throw a 401 on auth failure for queries that need auth
# valid values: always, per_query, never
auth_fail_block: never
# Latency tracing for database queries and remote joins
# the resulting latency information is returned with the
# response
enable_tracing: true
# Postgres related environment Variables
# SG_DATABASE_HOST
# SG_DATABASE_PORT

View File

@ -5,13 +5,21 @@ web_ui: false
# debug, info, warn, error, fatal, panic, disable
log_level: "info"
# disabled tracing enables query caching
enable_tracing: false
# Disable this in development to get a list of
# queries used. When enabled super graph
# will only allow queries from this list
# List saved to ./config/allow.list
use_allow_list: true
# Throw a 401 on auth failure for queries that need auth
# valid values: always, per_query, never
auth_fail_block: always
# Latency tracing for database queries and remote joins
# the resulting latency information is returned with the
# response
enable_tracing: true
# Postgres related environment Variables
# SG_DATABASE_HOST
# SG_DATABASE_PORT