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
2
votes
1 answer

React-Native Connect FaunaDB, TypeError: Network request failed on Android

I want to connect to faunadb through the application I developed with React native. For this, I installed faunadb's node.js package and prepared the necessary queries. The processes I did worked on IOS without any problems. But I am getting the…
hkucuk
  • 345
  • 1
  • 4
  • 14
2
votes
1 answer

How to join two collections in Fauna DB

I'm new to FaunaDb FQL, and I'm trying to query data from 2 collections through the indexes but I just don't get it. I created the indexes from the FaunaDB GUI: Index #1 (users_waitlist) (No terms): data.waitlist_meta (this is the reference to the…
Alex Yepes
  • 1,160
  • 1
  • 9
  • 21
2
votes
1 answer

FaunaDB: how to fetch a custom column

I'm just learning FaunaDB and FQL and having some trouble (mainly because I come from MySQL). I can successfully query a table (eg: users) and fetch a specific user. This user has a property users.expiry_date which is a faunadb Time() type. What I…
Terrabythia
  • 2,031
  • 3
  • 19
  • 29
2
votes
1 answer

How to querying and filtering efficiently on Fauna DB?

For example, let’s assume we have a collection with hundreds of thousands of documents of clients with 3 fields, name, monthly_salary, and age. How can I search for documents that monthly_salary is higher than 2000 and age higher than 30? In SQL…
Perestrelo
  • 183
  • 1
  • 3
  • 14
2
votes
2 answers

Why are different Fauna databases displayed in the dashboard than are created via the CLI?

I have authenticated with Fauna in two ways - Logging into the site, which takes you to your dashboard Using the CLI - fauna cloud-login Given that I've logged into both using the same email/password combination, I would expect that they would…
2
votes
2 answers

Is it safe to store a FaunaDB client secret in cookies?

Many FaunaDB authentication guides promote storing the client secret in as a cookie in order to attach it to the subsequent db queries, but how safe is it? The secret token is, practically, hundred per cent exposed in the browser's cookie…
Comi9
  • 69
  • 1
  • 5
2
votes
1 answer

How to Get Data from two collection in faunadb

I am new to faunadb. I am having trouble with querying data from two collections. I have a user collection with the following data. { "ref": Ref(Collection("users"), "286520131377445052"), "ts": 1609505740440000, "data": { …
Pranta
  • 2,928
  • 7
  • 24
  • 37
2
votes
2 answers

How to replace all connections in a many-to-many relationship in Fauna

Say I have this schema: Client { services: [Service] @relation(name: "ClientServices") } Service { clients: [Client] @relation(name: "ClientServices") } And I want to connect some services to a client, like this: mutation { updateClient(id: ...,…
O. Mills
  • 216
  • 2
  • 10
2
votes
1 answer

How to query a range of values with Fauna and FQL?

Im' having problem with FaunaDB. I'm new to it, went through docs, but no luck. I'll jump imto showing you the code right now but SO complains that my question has too much code in it. I'm trying to do the following SQL statement with FQL: SELECT *…
2
votes
1 answer

FetchError: request to https://db.fauna.com/ failed, reason: write EPIPE

I'm trying to launch my new web app using Netlify Functions accessing FaunaDB and while it seems to work locally great (via netlify dev), when it's online it feels like every 3rd call to the database fails with the following error: FetchError:…
Ivan
  • 1,093
  • 1
  • 10
  • 15
2
votes
1 answer

How does one get all the documents of a collection in FaunaDB?

I have tried q.Match('fooIndex'), where fooIndex is an index without field, but it returns a weird object which is not a list of documents
2
votes
1 answer

filter by Time in graphql (using faunaDB service)

My graphQL schema looks like this, type Todo { name: String! created_at: Time } type Query { allTodos: [Todo!]! todosByCreatedAtFlag(created_at: Time!): [Todo!]! } This query works. query { todosByCreatedAtFlag(created_at:…
noi.m
  • 3,070
  • 5
  • 34
  • 57
2
votes
1 answer

FaunaDB: How to create index for arbitrary length-array field

Is there a way to create an index for an array property of a document, so that I can Match the document based on any value in the array? For example, assuming a document looks something like { data: { ips: ['192.168.1.1', '::ffff:c0a8:101'] }…
qwtel
  • 4,467
  • 1
  • 18
  • 12
2
votes
3 answers

When updating a record in FaunaDB, how do I update one field without passing in every field and subobject?

Perhaps I haven't grasped GraphQL yet, but I want to update a complex record in the DB. I'm having trouble finding docs that explain this, which doesn't use a trivial example. I am using FaunaDB and trying to test things in the GraphQL playground…
Ivan
  • 1,093
  • 1
  • 10
  • 15
2
votes
2 answers

Create a collection in a specific child database

I am working on a multi-tenancy architecture using FaunaDB where each team of users has a dedicated child database. I am trying to create a collection (Users) inside the child database, where data about the team and its users is saved. I am using…
Anas Tiour
  • 1,344
  • 3
  • 17
  • 33
1 2
3
16 17