Code Monkey home page Code Monkey logo

Comments (6)

adam-cowley avatar adam-cowley commented on August 23, 2024

I think that might be my bad/inconsistent naming.... have you tried index: true rather than indexed?

from neode.

brvnonascimento avatar brvnonascimento commented on August 23, 2024

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.

adam-cowley avatar adam-cowley commented on August 23, 2024

Oops! I'll get that sorted

from neode.

adam-cowley avatar adam-cowley commented on August 23, 2024

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.

4lessandrodev avatar 4lessandrodev commented on August 23, 2024

@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.

akudo7 avatar akudo7 commented on August 23, 2024

Hi, thanks for keeping great work!

When can we use this fixing?

Thanks

from neode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.