Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

elasticsearch-graphql

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elasticsearch-graphql - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

1

lib/queryBuilder.js

@@ -54,3 +54,2 @@ var _ = require('lodash')

}
debugger

@@ -57,0 +56,0 @@ if (sel.arguments.length) {

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc