Add session variable for user id

This commit is contained in:
Vikram Rangnekar
2019-09-08 01:54:38 -04:00
parent fe4d1107ac
commit 65921d4d42
9 changed files with 81 additions and 57 deletions

View File

@ -1,5 +1,30 @@
# http://localhost:8080/
query {
customers {
id
email
payments {
customer_id
amount
billing_details
}
}
}
query {
products(id: $PRODUCT_ID) {
name
}
}
query {
products(id: $PRODUCT_ID) {
name
image
}
}
variables {
"update": {
"name": "Hellooooo",
@ -20,8 +45,8 @@ mutation {
variables {
"update": {
"name": "Hellooooo",
"description": "World !!!!!"
"name": "Helloo",
"description": "World \u003c\u003e"
},
"user": 123
}
@ -34,18 +59,6 @@ mutation {
}
}
variables {
"id": 5
}
{
products(id: $ID) {
id
name
description
}
}
variables {
"update": {
@ -70,28 +83,3 @@ query {
}
}
query {
customers {
id
email
payments {
customer_id
amount
billing_details
}
}
}
query {
products(id: $PRODUCT_ID) {
name
}
}
query {
products(id: $PRODUCT_ID) {
name
image
}
}

View File

@ -93,7 +93,7 @@ database:
# filter: ["{ user_id: { eq: $user_id } }"]
# Field and table names that you wish to block
blacklist:
blocklist:
- ar_internal_metadata
- schema_migrations
- secret

View File

@ -91,7 +91,7 @@ database:
filter: ["{ user_id: { eq: $user_id } }"]
# Field and table names that you wish to block
blacklist:
blocklist:
- ar_internal_metadata
- schema_migrations
- secret