Questions tagged [faunadb]

For questions related to FaunaDB, a strongly consistent multi-model database capable of global horizontal scale with a focus on operational simplicity.

FaunaDB is a strongly consistent database capable of global horizontal scale with a focus on operational simplicity. FaunaDB supports document, relational, graph, and temporal data sets from a single query. In addition to its own FQL query language, the product supports GraphQL, with SQL planned for the future.

Fauna Cloud was opened to the public on March 15, 2017.

Links

250 questions
0
votes
0 answers

cannot extra data from a faunaDb feild with value as a list

I have a very simple collection in faunaDb it is like this:- data : { field2: { } field2: { } field3: { } field4: [ {} {} ] } field 1 & field 2 can be extracted using an indexed field , ie any of the 1,2,3, field, but filed 4 always returns null i…
Lav Hinsu
  • 104
  • 1
  • 6
0
votes
1 answer

How do I paginate a sorted index in Fauna DB?

I've created an index to sort blog posts by a date. However, when I try to paginate the results, it keeps returning the initial results. Here's my index: CreateIndex({ name: "posts_desc", unique: false, serialized: true, source:…
Aaron Austin
  • 225
  • 1
  • 2
  • 9
0
votes
1 answer

Unable to login with a specific user in FaunaDB

It always worked before, but it is no longer working. I have a rate limiting logic, but even if I clear all rate limiting data, it still happens. Only with a specific user. I created another account on FaunaDB for testing purposes and a new…
Celso Jr
  • 136
  • 10
0
votes
1 answer

FaunaDB GraphiQL will not allow me to update my schema when I specify a new input type

This is an example of a document I am trying to retrieve: { "ref": Ref(Collection("Word"), "270608756095582738"), "ts": 1594331477980000, "data": { "word": "ablatitious", "letters": [ { "letter": "a", …
Nick
  • 73
  • 6
0
votes
1 answer

What is the best way to return most recent posts from Fauna DB for a blog, etc

I am building a simple custom headless CMS with React to save data in Fauna via API Gateway and Lambda. To list my posts in the admin, I would like to get the data from my collection sorted by a date value. When I create a new index to do this, I…
Aaron Austin
  • 225
  • 1
  • 2
  • 9
0
votes
1 answer

How do I create an index in Fauna DB that returns sorted data in key value pairs

I’m trying to create an index that returns sorted data in an object with keys. The default index for my collection returns something like this: { "ref": Ref(Collection("posts"), "251333584234742292"), "ts": 1583632773120000, "data": { …
Aaron Austin
  • 225
  • 1
  • 2
  • 9
0
votes
1 answer

How to get client fields data with your login key in faunadb?

After login in faunadb, I need to make a query to get your own data in faunadb. I tried this: const data = await faunaClient(faunaSecret).query( q.Get(q.Ref(q.Collection('sellers'), q.Identify())) ) In this function I have only client secret key,…
Micael
  • 81
  • 1
  • 10
0
votes
1 answer

Fauna DB shows data from shell on web but is not working in terminal shell?

I am learning fauna db but is not working from terminal shell. It shows data on webshell. > Paginate(Indexes()) { "data": [ Index("school"), Index("Community") ] } But does not show data on terminal shell. >…
0
votes
0 answers

FaunaDB client side graphql with gatsby js doesn't rerender unless page refreshed

I was using this tutorial https://css-tricks.com/build-a-dynamic-jamstack-app-with-gatsbyjs-and-faunadb/ as a guide to do some dynamic content updates with faunadb and gatsbyjs. Now I have everything working to a certain extent. The issue I am…
Anders Kitson
  • 1,413
  • 6
  • 38
  • 98
0
votes
1 answer

Querying FaunaDB doesn't get latest results in a multi-user scenario

Context I'm learning FaunaDB with React and have written some bit of code using this article as a reference. The demo app I'm building is a coffee poll/counter app - user's would be shown coffee types and you click the button to increase the…
Clyde D'Souza
  • 402
  • 2
  • 10
0
votes
1 answer

How can I delete a specific element from a document in faunadb?

For example: How can I change this - { "Name": "UserName", "Ref": [ {"id1": "ajbdkfb323"}, {"id2": "fguqge7681"}, {"id3": "chv76aavbb"} ], "day": "Wednesday" } to this - { "Name": "UserName", "Ref": [ {"id1": "ajbdkfb323"}, {"id2":…
Himanshu Pal
  • 85
  • 1
  • 5
0
votes
1 answer

Module not found: Error: Can't resolve 'http' in FaunaDB JavaScript Driver

I'm trying to use FaunaDB in an Ionic project, but a problem has arisen that I don't know how to solve. I simply created a new project and installed the driver: ionic start --type=angular my-app blank npm i faunadb Then, I instantiate…
Alex Oliveira
  • 133
  • 1
  • 9
0
votes
1 answer

FaunaDB shows "Instance data is not valid." when trying to update schema

I am trying to upload an updated schema.gql file to Fauna/FaunaDB via the GraphQL console's 'Update schema' button. I am receiving the following error: Instance data is not valid. Does anyone know what the cause of this error message is?
Duncan Walker
  • 2,182
  • 19
  • 28
0
votes
1 answer

Complex FQL Filter Question - Intersection of a greater than and equals to

What is the best most efficient way to do this in FaunaDB? SELECT * FROM emp WHERE sal >= 2000 AND deptno = 10 2.Can #1 be done using the intersection() function? If you wanted to the below query how would it accomplished with FQL? SELECT *…
Keston
  • 109
  • 1
  • 11
0
votes
2 answers

How to map Time type data of FaunaDB to the go lang variable?

I'm stuck on handling Time type data of faunaDB. I have no idea which type of golang is appropriate to map to Time type data of faunaDB. I've tried the following code for fauna document creation: type LabelData struct { RedirectURL string…
Ueda Takeyuki
  • 721
  • 10
  • 26
1 2 3
16
17