Commit 37203124 authored by Abhishek Warokar's avatar Abhishek Warokar Committed by Tim Neutkens

Fix typo in FaunaDB example (#10304)

Colleciton -> Collection
parent 6f6989b8
...@@ -42,7 +42,7 @@ readline.question(`Please provide the FaunaDB admin key\n`, adminKey => { ...@@ -42,7 +42,7 @@ readline.question(`Please provide the FaunaDB admin key\n`, adminKey => {
console.error(`Could not import schema, closing`) console.error(`Could not import schema, closing`)
}) })
.then(res => { .then(res => {
// The GraphQL schema is important, this means that we now have a GuestbookEntry Colleciton and an entries index. // The GraphQL schema is important, this means that we now have a GuestbookEntry Collection and an entries index.
// Then we create a token that can only read and write to that index and collection // Then we create a token that can only read and write to that index and collection
var client = new faunadb.Client({ secret: adminKey }) var client = new faunadb.Client({ secret: adminKey })
return client return client
...@@ -79,7 +79,7 @@ readline.question(`Please provide the FaunaDB admin key\n`, adminKey => { ...@@ -79,7 +79,7 @@ readline.question(`Please provide the FaunaDB admin key\n`, adminKey => {
console.error(`Failed to create role, closing`) console.error(`Failed to create role, closing`)
}) })
.then(res => { .then(res => {
// The GraphQL schema is important, this means that we now have a GuestbookEntry Colleciton and an entries index. // The GraphQL schema is important, this means that we now have a GuestbookEntry Collection and an entries index.
// Then we create a token that can only read and write to that index and collection // Then we create a token that can only read and write to that index and collection
var client = new faunadb.Client({ secret: adminKey }) var client = new faunadb.Client({ secret: adminKey })
return client return client
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment