semantic-graphql
Advanced tools
Comparing version 0.2.1 to 0.3.0
# Changelog | ||
# 0.3.0 | ||
**Breaking changes:** | ||
- Cannot override `relayEdgeType` and `relayConnectionType` anymore. `relayConnectionDefinitions` override added instead. | ||
**Bug fixes:** | ||
- Bug concerning the creation of Relay types | ||
# 0.2.1 | ||
@@ -4,0 +12,0 @@ |
{ | ||
"name": "semantic-graphql", | ||
"version": "0.2.1", | ||
"version": "0.3.0", | ||
"description": "Create GraphQL schemas from RDF-based ontologies", | ||
@@ -32,3 +32,3 @@ "main": "index.js", | ||
"chai": "^3.5.0", | ||
"eslint": "^3.11.1", | ||
"eslint": "^3.12.0", | ||
"eslint-config-airbnb-base": "^10.0.1", | ||
@@ -35,0 +35,0 @@ "eslint-plugin-import": "^2.2.0", |
@@ -130,4 +130,3 @@ # Semantic GraphQL | ||
| class | graphqlInterfaceType | GraphQLInterfaceType | | ||
| class | relayConnectionType | ConnectionType | | ||
| class | relayEdgeType | EdgeType | | ||
| class | relayConnectionDefinitions | { edgeType, connectionType } | | ||
| property | isGraphqlList | Boolean | | ||
@@ -134,0 +133,0 @@ | property | isRelayConnection | Boolean | |
@@ -14,3 +14,3 @@ const { GraphQLList } = require('graphql'); | ||
const getGraphqlObjectResolver = require('./getGraphqlObjectResolver'); | ||
const getRelayConnectionType = require('./getRelayConnectionType'); | ||
const getRelayConnectionDefinitions = require('./getRelayConnectionDefinitions'); | ||
@@ -50,3 +50,3 @@ const isLiteral = iri => iri.startsWith(xsdIri) || iri === rdfsLiteral; | ||
fieldConfig.args = requireGraphqlRelay().connectionArgs; | ||
fieldConfig.type = getRelayConnectionType(g, ranges[0]); | ||
fieldConfig.type = getRelayConnectionDefinitions(g, ranges[0]).connectionType; | ||
} | ||
@@ -53,0 +53,0 @@ |
@@ -10,4 +10,3 @@ const path = require('path'); | ||
const getGraphqlInterfaceType = require('./graphql/getGraphqlInterfaceType'); | ||
const getRelayEdgeType = require('./graphql/getRelayEdgeType'); | ||
const getRelayConnectionType = require('./graphql/getRelayConnectionType'); | ||
const getRelayConnectionDefinitions = require('./graphql/getRelayConnectionDefinitions'); | ||
@@ -53,4 +52,4 @@ const utf8 = 'utf-8'; | ||
this.getInterfaceType = iri => getGraphqlInterfaceType(this, iri); | ||
this.getEdgeType = iri => getRelayEdgeType(this, iri); | ||
this.getConnectionType = iri => getRelayConnectionType(this, iri); | ||
this.getEdgeType = iri => getRelayConnectionDefinitions(this, iri).edgeType; | ||
this.getConnectionType = iri => getRelayConnectionDefinitions(this, iri).connectionType; | ||
this.toString = () => '[SemanticGraph]'; | ||
@@ -57,0 +56,0 @@ } |
74560
38
718
185