question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FaunaDB Adapter Setup -- Fauna Shell Commands Fail

See original GitHub issue

Title

Fauna Adapter Setup – Fauna Shell Commands Fail

How to reproduce ☕️

When using documentation-provided Fauna shell commands, the collections are created but not the indexes. You receive this error.

Error: [
  {
    "position": [],
    "code": "validation failed",
    "description": "document data is not valid.",
    "failures": [
      {
        "field": [
          "source"
        ],
        "code": "invalid reference",
        "description": "Cannot read reference."
      }
    ]
  }
]

Your question/bug report 📓

The solution is to separately run the CreateCollection calls altogether, then run the CreateIndex calls altogether.

In other words, just a documentation change from one block to two blocks of commands to run. Maybe a sentence clarifying that they are to be run separately.

Contributing 🙌🏽

Yes, I am

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
balazsorban44commented, Feb 7, 2022

Yep, docs should be alright! 🙏

Still thinking through the automation of versioning/publishing of packages, but that does not affect the docs site.

0reactions
zpg6commented, Feb 7, 2022

@edizyurdakul Thanks for confirmation to proposed solution. @balazsorban44 is monorepo ready for documentation PRs? I can submit

Read more comments on GitHub >

github_iconTop Results From Across the Web

shell - Fauna Documentation
Description. Starts an interactive query shell for sending queries to Fauna. It is not possible to use this command to run queries in...
Read more >
JavaScript driver - Fauna Documentation
The faunadb.query module contains all of the functions to create Fauna query expressions. Instantiating a client. javascript
Read more >
Examples - Fauna Documentation
Log in to Fauna Dashboard. Click on an existing database, or create a new database. Click the Security button in the left navigation...
Read more >
Vercel integration - Fauna Documentation
The Install Vercel/Fauna Connector screen. Each project that you have selected appears on this screen asking for permission to access a specific database....
Read more >
fauna-shell reference - Fauna Documentation
Requirements; Installation; Command reference. fauna-shell is a command line tool that provides several capabilities: An interactive query command line that ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found