elasticsearch-graphql
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -54,3 +54,2 @@ var _ = require('lodash') | ||
} | ||
debugger | ||
@@ -57,0 +56,0 @@ if (sel.arguments.length) { |
{ | ||
"name": "elasticsearch-graphql", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Schema generator and query builder for elasticsearch", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -19,5 +19,18 @@ # Elastic Search GraphQL | ||
esGraphQL({ | ||
var schema = esGraphQL({ | ||
graphql: graphql, | ||
name: 'ordersSearch', | ||
mapping: { | ||
"mappings": { | ||
"order": { | ||
"properties": { | ||
"id": { | ||
"type" : "string", | ||
"index" : "not_analyzed" | ||
}, | ||
... | ||
} | ||
} | ||
} | ||
}, | ||
elastic: { | ||
@@ -29,17 +42,17 @@ host: 'localhost:9200', | ||
hitsSchema: hitsSchema | ||
},function(err, schema) { | ||
}) | ||
var rootSchema = new graphql.GraphQLSchema({ | ||
query: new graphql.GraphQLObjectType({ | ||
name: 'RootQueryType', | ||
fields: { | ||
mySearchData: { | ||
type: schema.type, | ||
args: schema.args, | ||
resolve: schema.resolve | ||
} | ||
var rootSchema = new graphql.GraphQLSchema({ | ||
query: new graphql.GraphQLObjectType({ | ||
name: 'RootQueryType', | ||
fields: { | ||
mySearchData: { | ||
type: schema.type, | ||
args: schema.args, | ||
resolve: schema.resolve | ||
} | ||
}) | ||
} | ||
}) | ||
}) | ||
``` | ||
@@ -46,0 +59,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14860
101
419