Category : graphql

I am implementing a webpage with React and AWS Amplify. I have the following definition in my schema.graphql file: type Calendar @model { id: ID! name: String description: String url: String! intervals: [Interval] @connection(keyName: "byCalendar", fields: ["id"]) } I would like to get a calendar from its URL string. Unfortunately, the following code throws an ..

Read more

I am trying to export the babel-plugin-relay/macro module in a file (to make my relay functions easier to import), however it is throwing an error. I am using create-react-app without ejecting or changing any config. Module parse failed: Export ‘graphql’ is not defined (7:9) File was processed with these loaders: * ./node_modules/@pmmmwh/react-refresh-webpack-plugin/loader/index.js * ./node_modules/babel-loader/lib/index.js You ..

Read more