Hello am a newbie with "web dev". Try to follow along the example code from https://github.com/neo4j/graphql/tree/master/examples/neo-push repository. I changed everything from typescript to javascript. Renamed all the files to *.js and removed any typescript code.
The types.js renamed from .ts
types.js : {
import { Driver } from "neo4j-driver";
import { OGM } from "@neo4j/graphql-ogm";
export type Context = {
ogm: OGM;
adminOverride?: boolean;
driver: Driver;
};
}
When I try to run the start script I get this error """
/api/src/gql/index.js: Support for the experimental syntax 'flow' isn't currently enabled (12:8):
10 | export const typeDefs = [User.typeDefs, Member.typeDefs, Comment.typeDefs];
11 |
12 | export type Context = {
| ^
13 | ogm: OGM;
14 | adminOverride?: boolean;
15 | driver: Driver;
Add @babel/preset-flow (https://git.io/JfeDn) to the 'presets' section of your Babel config to enable transformation.
"""
Basically am stuck can't install and configure flow. I there a way I could disable this feature?
Thank you in advance!