This repository has been archived by the owner on Nov 8, 2021. It is now read-only.
Releases: realm/realm-graphql-service
Releases · realm/realm-graphql-service
3.5.0
Enhancements
- Allow overriding the generated model names to avoid clashes with existing classes. The override properties are
collectionModelSuffix
,inputModelSuffix
,namedSubscriptionModelName
, andbase64ModelName
on theGraphQLServiceSettings
interface.
Compatibility
- Compatible with Realm Object Server releases from 3.12.0 or later.
Known notable issues
- Support for using query-based Realms is in beta and while the API is stable, there may be corner cases that are not well covered.
- Linking to a class that contains no properties will result in GraphQL errors claiming that it can't find that class. The workaround is to add at least one property to the class (this can be done either via any of the native SDKs or Studio).
3.4.1
Bug fixes
- Fixed an issue that could cause an exception with the message
ReferenceError: realm is not defined
to be thrown. (#83)
Compatibility
- Compatible with Realm Object Server releases from 3.12.0 or later.
Known notable issues
- Support for using query-based Realms is in beta and while the API is stable, there may be corner cases that are not well covered.
- Linking to a class that contains no properties will result in GraphQL errors claiming that it can't find that class. The workaround is to add at least one property to the class (this can be done either via any of the native SDKs or Studio).
3.4.0
Enhancements
- Added preliminary support for using query-based synchronized Realms. When opening such Realms, there several new GraphQL nodes added:
createXXXSubscription(query: String, sortBy: String, descending: Boolean, name: String)
: creates a Realm subscription for objects of typeXXX
that match the query. When working with query-based Realms, you need to first create Realm subscriptions to indicate which objects should be synchronized to the Realm. The response is a collection of objects that match the query. Once a subscription is created, it will be persisted and objects will be automatically synchronized until the subscription is removed. You can specify an optional name, that will allow you to later remove that subscription.queryBasedSubscriptions(name: String)
: returns a collection of active subscriptions.deleteQueryBasedSubscription(name: String!)
: removes a subscription by name.
Bug fixes
- Fixed a bug which would cause the following error message to be output when a class didn't have any properties:
Invalid options provided to ApolloServer: Syntax Error: Expected Name, found }
. Now such classes are ignored as they contain no meaningful information. realm-graphql#32
3.3.0
Enhancements
- Added a configuration option to represent integers as
Float
in the GraphQL schema. Since Realm integers can be up to 64-bit and the GraphQLInt
type is limited to 32-bits, this setting allows you to extend the range of the numbers you can query to match javascript's limit (2^53 - 1). The downside is that you'll lose the type checking and you may accidentally pass floats where integers are expected. Doing so will cause Realm to automatically round the number down and treat it as an integer. To enable that option, pass
presentIntsAsFloatsInSchema: true
in theGraphQLService
constructor.
3.2.2
3.2.1
3.2.0
Enhancements
- Added a configuration option to include the objects matching the query in the collection response. It is not true by default because it changes the response type slightly, which would break existing clients. It can be enabled by passing includeCountInResponses: true in the GraphQLService constructor.
- Lifted the requirement to url-encode Realm paths.