Comments (6)
I think that might be my bad/inconsistent naming.... have you tried index: true
rather than indexed
?
from neode.
Yes, I did try ìndex: true
and the error goes away. It does not create any index or constraint on Neo4j though, only when ìndexed: true
is set.
from neode.
Oops! I'll get that sorted
from neode.
I've just had a look at the test and it seems to pass when using index: true
- can you share a repo that I can clone and take a look at?
from neode.
@adam-cowley I have the sam error.
Please check this minimal project on link bellow
Github repository user.schema.ts
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
from neode.
Hi, thanks for keeping great work!
When can we use this fixing?
Thanks
from neode.
Related Issues (20)
- TypeError: metatype is not a constructor - Neode DynamicModule with model NestJs HOT 1
- Is there a way to eagerly load multiple nodes with a given relationship type? HOT 3
- errorMessage: Converting circular structure to JSON
- Model support for array type HOT 1
- Support for parentheses in where conditions
- Does Neode.create<T>(...) async? HOT 8
- Validation Documentation Is Vague HOT 2
- Can I add extra labels to nodes when CREATE or MERGE with query builder?
- Validation error when creating node
- Disallow additional fields?
- No transactions? HOT 1
- AN ERROR OCCURRED WHILE EXECUTING SEARCH: Writing in read access mode not allowed. Attempted write to internal graph 0 (neo4j) HOT 2
- Node Validation on Schema Update
- Examples of node as a Property Type?
- Argument of type 'string' is not assignable to parameter of type 'Model<unknown>'
- Session Expired on Query HOT 2
- Wrong database used in transaction method (affects transactions and batch methods)
- Incorrect Constraints Query Generated HOT 2
- Computed Properties on models
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neode.