Realm

  • Hot ideas
  • Top ideas
  • New ideas
  • My feedback
  1. 89 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    15 comments  ·  Realm GraphQL  ·  Flag idea as inappropriate…  ·  Admin →
  2. Pagination in GraphQL

    We have slicing via limit: INT, but we do not have the ability to specify an offset. Are there plans to add this soon?
    GraphQL Documentation actually specifies their pagination terms as follows:
    first: int
    offset: int
    after: _id
    Are there plans to implement this at all?

    43 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    4 comments  ·  Realm GraphQL  ·  Flag idea as inappropriate…  ·  Admin →
  3. Allow deeper relationships under Rules

    I really like being able to use GraphQL and how you can auto generate a schema but when trying to relate fields I noticed it would only let me relate top level fields.

    For example - we have "accounts" and "users" under accounts with user Id on a related object. But I cannot do related userId back to account.user.userid since user is an object. I was hoping after I generated a schema for all the collection I would be able to drill down deeper but no such luck.

    16 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Realm GraphQL  ·  Flag idea as inappropriate…  ·  Admin →
  4. Adding or removing elements from array fields

    It would be helpful to support array add/remove in update mutations. I've been running into this most often when dealing with one-to-many relationships.

    For example, adding/removing books from an author. Currently, you would have to fetch the entire array of books to add or remove the book linked to the author. If I could supply the foreign key to add/remove from the relationship that would be fantastic.

    12 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Realm GraphQL  ·  Flag idea as inappropriate…  ·  Admin →
  5. Custom GraphQL Schema for MongoDB Realm

    Dear MongoDb GraphQl Stitch developers,

    Is it possible to add an ability to modify the final GraphQl schema (in order to remove unnecessary for my API stuff)
    OR
    Build it based on existed roles?

    For example, Im building a "read only" GraphQl API and have NO roles that can actually modify the data. So I find it illogically to have mutations in the Final GraphQl schema.

    It would be great to have an ability to choose which exactly mutations/queries I need for my GraphQl.

    Thank you.

    12 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    2 comments  ·  Realm GraphQL  ·  Flag idea as inappropriate…  ·  Admin →
  6. Single schema of truth: JSON Schema / Realm Schema / GraphQL Schema / TypeScript Types

    I think the current recommended initial prototyping workflow for a Realm web SDK user is like this:

    1) Add first data in collection (manually, on Compass etc.)
    2) Generate JSON Schema (manually click a button on web UI)
    3) Set up relationship (manually, on web UI)
    4) Download GraphQL Schema (manually click a button on web UI)
    5) Get TypeScript types and React hooks (automatically generated by graphql-codegen CLI)
    6) If you use another Realm SDK somewhere else (ex. Node.js sdk for server side), write Realm Schema (manually)

    This is not very developer friendly, and requires back-and-forth work between CLI,…

    5 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    6 comments  ·  Realm GraphQL  ·  Flag idea as inappropriate…  ·  Admin →
  7. GraphiQL Description field

    I would like to add descriptions to improve the documentation of my GraphQL queries. When browsing the API through GraphiQL, all types and queries say "No description", so one could figure that this would be able to edit, but it's currently not possible (https://developer.mongodb.com/community/forums/t/add-description-to-custom-resolver/14227).

    It would be nice to have the possibility to add a "description" key in a custom resolver JSON schema, like suggested in the post above.

    3 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Realm GraphQL  ·  Flag idea as inappropriate…  ·  Admin →
  8. Support for updating nested fields in GraphQL mutations

    I want to do the equivalent of {$set: {"details.pm_stage": "...."}}

    export const UPDATEPROJECTDETAILS = gql
    mutation UpdateProjectDetails($query: PsprojectQueryInput!, $pmStage: String!) {
    updateOnePsproject(query: $query, set: {details: {pm_stage: $pmStage}}) {
    _id
    }
    }
    ;

    right now the whole "details" subdocument gets overridden

    3 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Realm GraphQL  ·  Flag idea as inappropriate…  ·  Admin →
  9. Array types in generated GraphQL schema should follow JSON schema of a collection or custom type

    Hello!

    Realm generates GraphQL schema that does not reflect the exact JSON schema of a collection or custom type when it comes to array fields. Generated GraphQL schema allow arrays to contain NULLs even if this is not stated in JSON schema.

    For example, please see collection schema in the attachment. (Not able to insert JSON here in a readable manner)

    For this schema, I expect Realm to generate following GraphQL type for my collection:

    type MyCollection {
    _id: ObjectId!
    arrField: [String!]!
    }

    Please note the exclamation sign inside the square brackets. This states that the array item can only…

    2 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Realm GraphQL  ·  Flag idea as inappropriate…  ·  Admin →
  10. Allow editing of the generated GraphQL schema and resolver

    The data model that I want to expose to the user is not the one that I have in MongoDB, having this feature would be nice

    2 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Realm GraphQL  ·  Flag idea as inappropriate…  ·  Admin →
  11. Default value for fields

    A way to set default value to a field, when this is not given in the input.

    GraphQl already has this functionality..

    2 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Realm GraphQL  ·  Flag idea as inappropriate…  ·  Admin →
  12. Count Query with the existing QueryInput Filter

    I think this would be easy to implement, maybe its just to add a count to the pipeline.

    The idea is to have a Count query for each generated type from collection in schema.

    The output would be a Int.
    The input the QueryInput used already for findManys queries

    2 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Realm GraphQL  ·  Flag idea as inappropriate…  ·  Admin →
  13. Support for JSON schema oneOf / anyOf / allOf

    In our current project we have the requirement to support slightly differently shaped documents, contained within in the same collection, that are identified by an enumerated "type" field. In order to do this we require the ability to make use of the oneOf / anyOf / allOf polymorphic features of the JSON schema which would then ideally be relflected in the MongoDB Realm GraphQL endpoint. I was informed that this was being looked at a while ago but can see no associated feature request.

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Realm GraphQL  ·  Flag idea as inappropriate…  ·  Admin →
  14. Custom Query Filters

    While you can create custom resolvers for 3rd party data or functions, this doesnt help me use graphQL to search existing types. I want to be able to query an existing type based on a contains. I know that this is a complex issue, but if we could create a custom query filter like we do for in, gt, lt, etc, I think this would help make the graphQL API more usable.

    Currently, we are reduced to either using the limited query abilities, or recreate everything from scratch.

    For instance:

    I have a query currently:

    query {
    authorizationGroup(query: { name:

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Realm GraphQL  ·  Flag idea as inappropriate…  ·  Admin →
  15. Batched GraphQL Queries

    Realm currently doesn't seem to support the BatchHttpLink in Apollo Client. It would be nice to have in order to limit the amount of server round-trips from the client in certain situations.

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Realm GraphQL  ·  Flag idea as inappropriate…  ·  Admin →
  16. Ordering fields in Atlas

    The field's order doesn't respect the schema.
    Ordering fields when we use mutation with GraphQL.

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Realm GraphQL  ·  Flag idea as inappropriate…  ·  Admin →
  17. Add Intercepter or Middleware with GraphQL Apis

    Add a middleware or interceptor along with default graphql apis. So we can do some custom validation before start querying database.
    Scenario: If I want a user to restrict number of reads per collection, the best approach is go with custom resolver. But if there is a default pre-hook and post-hook , It would be great

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Realm GraphQL  ·  Flag idea as inappropriate…  ·  Admin →
  18. Special variables and values

    For example, I have a field called UpdatedAt which is a datetime field, I'd like to have it set to the system datetime of the server. If I use trigger to update the value of this field, then I will not be able to read the value right after the mutation completed. So I want to do something like ' Field: SYSTEMDATETIME', then the server side of GQL will translate SYSTEMDATETIME to the correct value.

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Realm GraphQL  ·  Flag idea as inappropriate…  ·  Admin →
  19. Allow one-to-many relationships in Realm GraphQL

    Two collections A & B. One field say _id of collection A is the "foreign key" for a field say "field1" in collection B.

    A: {_id:1, k1:v1, k2:v2}

    B: {f1:1, x1:y1} //Values of field f1 correspond to values of _id in A
    B: {f1:1, x1:y2}

    For one value of _id in A, there can be multiple corresponding documents in B. If we create a relationship currently in Realm GraphQL, only one document is fetched. The expected result set is 2 documents.

    The current cumbersome workaround is to add an array field in collection A with all corresponding document IDs from…

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Realm GraphQL  ·  Flag idea as inappropriate…  ·  Admin →
  • Don't see your idea?

Feedback and Knowledge Base