Here
I’m executing one graphQL query with faunaDB and appear the error like “Permission Denied”. Even I give the all permission from the permission section of faunaDB dashboard
Here is the error Screenshot:
Here is my schema:
# However, FaunaDB automatically adds two private values: _id and _ts
type ShopUser {
first_name: String!
last_name: String!
email: String!
account_owner: String!
locale: String!
collaborator: Boolean!
email_verified: Boolean!
# _id: Generated by FaunaDB as each document's unique identifier
# _ts: Timestamp generated by FaunaDB upon object creation
}
type Shop {
domain: String!
token: String!
user: ShopUser!
createdAt: Time!
# _id: Generated by FaunaDB as each document's unique identifier
# _ts: Timestamp generated by FaunaDB upon object creation
}
type ShopCollection {
shop_collection_id: Long!
title: String!
automated_max_products: Int!
type: String!
has_autoshffle: Boolean!
base_rules: String!
status: String!
shop_domain: String!
createdAt: Time!
# _id: Generated by Fauna as each document's unique identifier
# _ts: Timestamp generated by Fauna upon object updating
}
# A query named 'entries' which returns an array of GuestbookEntry objects
# Implicit arguments: _size (count) and _cursor (location within the Index)
type Query {
allShops: [Shop!]!
allShopCollections(shop_domain: String!): [ShopCollection!]!
shopByDomain(domain: String!): [Shop!]
}