feat: point field localization and graphql

This commit is contained in:
Dan Ribbens
2021-08-24 17:28:08 -04:00
parent 7504155e17
commit 30f17509ea
12 changed files with 174 additions and 33 deletions

View File

@@ -84,6 +84,7 @@ const buildWhereInputType = (name: string, fields: Field[], parentName: string):
equality: ['equals', 'not_equals'],
contains: ['in', 'not_in', 'all'],
comparison: ['greater_than_equal', 'greater_than', 'less_than_equal', 'less_than'],
geo: ['near'],
};
const fieldToSchemaMap = {
@@ -198,7 +199,7 @@ const buildWhereInputType = (name: string, fields: Field[], parentName: string):
field,
type,
parentName,
[...operators.equality, ...operators.comparison, 'near'],
[...operators.equality, ...operators.comparison, ...operators.geo],
),
};
},