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

Commit

Permalink
Add Point type support to inferShema
Browse files Browse the repository at this point in the history
Fix #358
  • Loading branch information
johnymontana committed Dec 13, 2019
1 parent c0953b0 commit e8a86b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/neo4j-schema/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const chooseGraphQLType = property => {
LocalTime: 'LocalTime',
LocalDateTime: 'LocalDateTime',
Time: 'Time',
Point: 'Point',

// Array types
LongArray: '[Int]',
Expand All @@ -40,7 +41,8 @@ const chooseGraphQLType = property => {
DateTimeArray: '[DateTime]',
TimeArray: '[Time]',
LocalTimeArray: '[LocalTime]',
LocalDateTimeArray: '[LocalDateTime]'
LocalDateTimeArray: '[LocalDateTime]',
PointArray: '[Point]'
};

return mapping[t] || 'String';
Expand Down

0 comments on commit e8a86b0

Please sign in to comment.