Skip to content

Commit 880c862

Browse files
committed
fix: Expose ElasticApiParser and mapping methods in index.js
1 parent 72a0c4f commit 880c862

File tree

7 files changed

+9
-2
lines changed

7 files changed

+9
-2
lines changed

example/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import express from 'express';
22
import graphqlHTTP from 'express-graphql';
33
import { GraphQLSchema, GraphQLObjectType, GraphQLString } from 'graphql';
44
import elasticsearch from 'elasticsearch';
5-
import ElasticApiParser from '../scripts/apiParser/ElasticApiParser';
5+
import ElasticApiParser from '../src/ElasticApiParser';
66

77
const expressPort = process.env.port || process.env.PORT || 9201;
88

@@ -11,7 +11,7 @@ const generatedSchema = new GraphQLSchema({
1111
name: 'Query',
1212
fields: {
1313
// see node_modules/elasticsearch/src/lib/apis/ for available versions
14-
14+
1515
elastic50: {
1616
description: 'Elastic v5.0',
1717
type: new GraphQLObjectType({
File renamed without changes.

src/elastic/search.js

Whitespace-only changes.

src/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export { default as ElasticApiParser } from './ElasticApiParser';
2+
export {
3+
convertToSourceTC,
4+
convertToAnalyzedITC,
5+
convertToSearchableITC,
6+
convertToAggregatableITC,
7+
} from './PropertiesConverter';

0 commit comments

Comments
 (0)