cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Making a Neo4J OGM Library with Typescript

Hi ~

I've been working on making a Neo4J Library for a couple of days now, pretty bold move knowing that I have little to no experience with Neo4J.

I'm learning on the go and its obvious that you can't make something good if you don't even know what to make. Its both an OGM and a query builder.

@NodeEntity('myTestNode')
class TestNodeEntity extends BaseNodeEntity {
  @NodeProp()
  username: string;

  @NodeProp()
  age: number;

  @NodeProp()
  somethingElse: unknown;

  notNodeProp: string;
}

const testNode = new TestNodeEntity();
testNode.username = 'ginkoe';
testNode.age = 609;
testNode.somethingElse = 'else';
testNode.notNodeProp = 'not a prop';

await testNode.save();

If you wanna take a look or if you're interested in helping you're welcome !

0 REPLIES 0
Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

All the sessions of the conference are now available online