Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
37203124
Commit
37203124
authored
Jan 28, 2020
by
Abhishek Warokar
Committed by
Tim Neutkens
Jan 28, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typo in FaunaDB example (#10304)
Colleciton -> Collection
parent
6f6989b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
setup.js
examples/with-graphql-faunadb/scripts/setup.js
+2
-2
No files found.
examples/with-graphql-faunadb/scripts/setup.js
View file @
37203124
...
...
@@ -42,7 +42,7 @@ readline.question(`Please provide the FaunaDB admin key\n`, adminKey => {
console
.
error
(
`Could not import schema, closing`
)
})
.
then
(
res
=>
{
// The GraphQL schema is important, this means that we now have a GuestbookEntry Collec
it
on and an entries index.
// The GraphQL schema is important, this means that we now have a GuestbookEntry Collec
ti
on and an entries index.
// Then we create a token that can only read and write to that index and collection
var
client
=
new
faunadb
.
Client
({
secret
:
adminKey
})
return
client
...
...
@@ -79,7 +79,7 @@ readline.question(`Please provide the FaunaDB admin key\n`, adminKey => {
console
.
error
(
`Failed to create role, closing`
)
})
.
then
(
res
=>
{
// The GraphQL schema is important, this means that we now have a GuestbookEntry Collec
it
on and an entries index.
// The GraphQL schema is important, this means that we now have a GuestbookEntry Collec
ti
on and an entries index.
// Then we create a token that can only read and write to that index and collection
var
client
=
new
faunadb
.
Client
({
secret
:
adminKey
})
return
client
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment