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
1
vote
1 answer

How to access admin dashboard for fauna dev, local database

I'm trying to setup fauna dev locally. After installing the docker image, and running a persistent instance, I get this information showing in the terminal Admin endpoint: 127.0.0.1:8444 API endpoint: 0.0.0.0:8443 API(plain) endpoint:…
Joseph K.
  • 1,055
  • 3
  • 23
  • 46
1
vote
1 answer

How to update single data when using Fauna and GraphQL

I have some problems when using Fauna and GraphQL When I use GraphQL to update data, all parameters are required For example // Schema type User { username: String! password: String! phone: String! } // Mutation mutation { …
1
vote
0 answers

Implementing a nested mutation based on a relationship between two GraphQL types

I want to create a form that allows me to create a value from a nested field. Root values in the same mutation work ok, but when I want to create the nested value, I cannot. Take for instance the below mutation. export const createPremise =…
Shingai Munyuki
  • 551
  • 1
  • 11
  • 25
1
vote
2 answers

How can I build a counter with a database to persist the value in NextJS?

I am building a like-counter in a NextJS ReactJS app, which stores a persistent incrementable count value. The max-count of clicks / likes is to be set to 100. The button will not increment the count any further than this value. The like-counter…
WΔ_
  • 1,229
  • 4
  • 20
  • 34
1
vote
1 answer

How to connect Many-to-one relations in FaunaDB

I’ve got the following GraphQL schema uploaded to my FaunaDB: type RSheet @collection(name: "sheets") { columns: [RColumn!]! @relation sections: [RSection]! } type RColumn @collection(name: "columns") { label: String! sheet: RSheet! } type…
Mue
  • 434
  • 5
  • 12
1
vote
1 answer

Fauna Search By Ref

I have two documents in the products collection... { "ref": Ref(Collection("products"), "300137558676865540"), "ts": 1622492331145000, "data": { "product_id": 1004, "display_name": "Product By ABC", "description": "Product…
Joe
  • 75
  • 2
  • 5
1
vote
1 answer

Filtering nested tree of document in Fauna db?

I have following data structure of a single document in Fauna: "data": { "title": "Title1", "blocks": [ { "block_1": { "text": "Text1", "refs": Ref(Collection("xyz"), "XYZ") }, { "block_2": { "text": "Text2", …
Gian-Luca
  • 85
  • 8
1
vote
1 answer

How to get record's "Ref" in FaunaDB predicate function?

I am trying to prepare “write” predicate function. The idea is to allow user changing only his own profile. I am comparing the “id” from Token and record “Ref”. By the logic it should work like this: q.Lambda( ['old', 'new'], q.Equals( …
yury.hrynko
  • 410
  • 4
  • 11
1
vote
0 answers

Fauna query language relations

I wanna write my graphql backend side with using FQL but I can't handle create and connect to FQL My backend NodeJS code: async createNew(data) { const query = q.Create( q.Collection('comments'), { data } ) const result:…
Bohdan
  • 11
  • 3
1
vote
1 answer

Does anyone know how to use Faunadb in unity? or their c# driver in unity?

I am curious if there is a possibility that we can use Faunadb drivers in unity
sahil mune
  • 23
  • 4
1
vote
2 answers

Is it possible to specify the AWS region for the storage location?

Not sure if this is even the correct place to ask, but I couldn't find any relevant information on this topic (apart from an old forum post that was last answered a year ago). Like the question says, does anyone know if it's possible to specify a…
ouairz
  • 113
  • 8
1
vote
3 answers

Indexes: Search by Boolean?

I'm having some trouble with FaunaDB Indexes. FQL is quite powerful but the docs seem to be limited (for now) to only a few examples/use cases. (Searching by String) I have a collection of Orders, with a few fields: status, id, client, material and…
ouairz
  • 113
  • 8
1
vote
1 answer

Can i use FaunaDB for Offline-First Apps?

FaunaDB is a new serverless database provider with some cool features. Unfortunately, my Google search did not reveal whether FaunaDB can also be used for offline-first apps. Currently I am developing a webapp with Svelte and a mobile app with React…
Niklas
  • 1,638
  • 4
  • 19
  • 48
1
vote
1 answer

Creating an index for all active items

I have a collection of documents that follow this schema {label: String, status: Number}. I want to introduce a new field, deleted_at: Date that will hold information if a document has already been deleted. Seems like a perfect use case for an…
entio
  • 3,816
  • 1
  • 24
  • 39
1
vote
1 answer

How to in GraphQL mutation pass an array to a field using FaunaDB

I don't think I am doing things the proper graphQL way, but I am not sure how to achieve it in graphQL. I have the following schema, that is then uploaded to FaunaDB, and they do some magic to turn it into a usable graphQL api endpoint. type Catalog…
Anders Kitson
  • 1,413
  • 6
  • 38
  • 98