-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when indexed is set to true: Not sure how to validate indexed on name #149
Comments
I think that might be my bad/inconsistent naming.... have you tried |
Yes, I did try |
Oops! I'll get that sorted |
I've just had a look at the test and it seems to pass when using |
@adam-cowley I have the sam error. Please check this minimal project on link bellow Github repository Error: Not sure how to validate indexed on name
at /home/alessandro/Workspace/Projects/teste/node_modules/neode/build/Services/Validator.js:273:15
at Array.forEach (<anonymous>)
at /home/alessandro/Workspace/Projects/teste/node_modules/neode/build/Services/Validator.js:247:25
at Array.forEach (<anonymous>)
at BuildValidationSchema (/home/alessandro/Workspace/Projects/teste/node_modules/neode/build/Services/Validator.js:165:23)
at Validator (/home/alessandro/Workspace/Projects/teste/node_modules/neode/build/Services/Validator.js:293:16)
at /home/alessandro/Workspace/Projects/teste/node_modules/neode/build/Services/MergeOn.js:38:38
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async UserService.createUser (/home/alessandro/Workspace/Projects/teste/dist/user-module/user.service.js:30:9)
import { SchemaObject } from 'neode';
const UserSchema: SchemaObject = {
id: {
type: 'uuid',
primary: true,
required: true,
},
name: {
type: 'string',
indexed: true,
required: true,
},
email: {
type: 'string',
indexed: true,
unique: true,
required: true,
},
password: { type: 'string', required: true },
avatar: 'string',
isFirstAuth: 'boolean',
};
export default UserSchema; works when I remove the indexes |
error when uses with typescript typed as SchemaObject adam-cowley#149
Hi, thanks for keeping great work! When can we use this fixing? Thanks |
I'm setting my schema as typed in the Schema Object type definition:
When I setup my server with shema.install() all the indexes and constraints are created successfully on Neo4j. However, when try to do a "merge" or "create" the following error is given (it works fine if I remove "Indexed" from the schema):
My repository class if it is of any help:
The text was updated successfully, but these errors were encountered: