Skip to content
This repository has been archived by the owner on Sep 3, 2021. It is now read-only.

Commit

Permalink
use floats for point fields
Browse files Browse the repository at this point in the history
  • Loading branch information
johnymontana committed Nov 16, 2019
1 parent d6b6bd0 commit cca0f40
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
12 changes: 6 additions & 6 deletions src/augment/types/spatial.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ const Neo4jPointField = {
* GraphQL types
*/
export const Neo4jPoint = {
[Neo4jPointField.X]: GraphQLInt.name,
[Neo4jPointField.Y]: GraphQLInt.name,
[Neo4jPointField.Z]: GraphQLInt.name,
[Neo4jPointField.LONGITUDE]: GraphQLInt.name,
[Neo4jPointField.LATITUDE]: GraphQLInt.name,
[Neo4jPointField.HEIGHT]: GraphQLInt.name,
[Neo4jPointField.X]: GraphQLFloat.name,
[Neo4jPointField.Y]: GraphQLFloat.name,
[Neo4jPointField.Z]: GraphQLFloat.name,
[Neo4jPointField.LONGITUDE]: GraphQLFloat.name,
[Neo4jPointField.LATITUDE]: GraphQLFloat.name,
[Neo4jPointField.HEIGHT]: GraphQLFloat.name,
[Neo4jPointField.CRS]: GraphQLString.name,
[Neo4jPointField.SRID]: GraphQLInt.name
};
Expand Down
24 changes: 12 additions & 12 deletions test/unit/augmentSchemaTest.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1740,23 +1740,23 @@ test.cb('Test augmented schema', t => {
}
type _Neo4jPoint {
x: Int
y: Int
z: Int
longitude: Int
latitude: Int
height: Int
x: Float
y: Float
z: Float
longitude: Float
latitude: Float
height: Float
crs: String
srid: Int
}
input _Neo4jPointInput {
x: Int
y: Int
z: Int
longitude: Int
latitude: Int
height: Int
x: Float
y: Float
z: Float
longitude: Float
latitude: Float
height: Float
crs: String
srid: Int
}
Expand Down

0 comments on commit cca0f40

Please sign in to comment.