You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Service()
export class OrganisationManager extends Object {
constructor(@Inject("database") readonly db: BoltAdapter,
@CypherQuery("organisationManager/get") readonly getQuery: string)
^--- Query is injected
{
super();
}
public async list(): Promise<Organisation[]> {
const result = await this.db.query(this.getQuery);
return plainToClass(Organisation, result.data);
}
}
I'm working in TypeScript as follows:
TypeScript for code clarity and documentation of intent. Make the best use of OO and functional paradigm.
Uses routing controllers, dependency injection, and clean middleware (security concerns) for highly cohesive code that can scale to address complex requirements.
Using CYPHER pattern matching+projections then map query results w/ class transformers (https://github.com/typestack/class-transformer). A TypeScript class corresponds to a tuned query for a given use case or set thereof.
So using your amazing plugin we have:
Code-formatting and error checking on queries.
Execute and test, profile individually from within the IDE. Less context switching by jumping in and out of Neo console, but if we need to troubleshoot, we can copy/paste the query into neo profile quickly.
What would be cool is if we could query parameters to each .cql file individually. This way no need to update parameters as we test/modify/update individual queries for evolving use-case requirements.
The text was updated successfully, but these errors were encountered:
We have released version 2.5.6, which includes custom parameter support for each of the opened Cypher files, and much more.
Please let us know if the implemented functionality is sufficient for your needs, or if there are must-haves you would like to request. Thanks!
I'm working in TypeScript as follows:
So using your amazing plugin we have:
What would be cool is if we could query parameters to each .cql file individually. This way no need to update parameters as we test/modify/update individual queries for evolving use-case requirements.
The text was updated successfully, but these errors were encountered: