Have challenges to start my Apollo Server need help

c:\Users\user\Desktop\COVID-19-GRAPHQL\node_modules\graphql\validation\validate.js:135
throw new Error(errors.map((error) => error.message).join(‘\n\n’));
^

Error: Unknown type “ObjectId”.

Unknown type “DateTime”.

Unknown type “ObjectId”.

Unknown type “DateTime”.

Unknown type “ObjectId”.

Unknown type “ObjectId”.

Unknown type “DateTime”.

Unknown type “ObjectId”.

Unknown type “DateTime”.

Unknown type “DateTime”.

Unknown type “DateTime”.

Unknown type “ObjectId”.

Unknown type “DateTime”.

Unknown type “ObjectId”.

Unknown type “DateTime”.

Unknown type “ObjectId”.

Unknown type “ObjectId”.

Unknown type “ObjectId”.

Unknown type “DateTime”.

Unknown type “DateTime”.

Unknown type “DateTime”.

Unknown type “ObjectId”.

Unknown type “DateTime”.

Unknown type “ObjectId”.

Unknown type “ObjectId”.

Unknown type “DateTime”.

Unknown type “ObjectId”.

Unknown type “DateTime”.

Unknown type “DateTime”.

Unknown type “ObjectId”.

Unknown type “DateTime”.

Unknown type “ObjectId”.

Unknown type “ObjectId”.

Unknown type “DateTime”.

Unknown type “ObjectId”.

Unknown type “DateTime”.

Unknown type “DateTime”.

Unknown type “DateTime”.

Unknown type “DateTime”.

Unknown type “DateTime”.

Unknown type “DateTime”.

Unknown type “DateTime”.

Unknown type “DateTime”.

Unknown type “DateTime”.

Unknown type “DateTime”.

Unknown type “DateTime”.

Unknown type “DateTime”.

Unknown type “DateTime”.

Unknown type “DateTime”.

Unknown type “DateTime”.

Unknown type “DateTime”.

Unknown type “DateTime”.

Unknown type “DateTime”.

Unknown type “DateTime”.
at assertValidSDL (c:\Users\user\Desktop\COVID-19-GRAPHQL\node_modules\graphql\validation\validate.js:135:11)
at buildASTSchema (c:\Users\user\Desktop\COVID-19-GRAPHQL\node_modules\graphql\utilities\buildASTSchema.js:44:34)
at makeExecutableSchema (c:\Users\user\Desktop\COVID-19-GRAPHQL\node_modules@graphql-tools\schema\cjs\makeExecutableSchema.js:74:47)
at ApolloServer.constructSchema (c:\Users\user\Desktop\COVID-19-GRAPHQL\node_modules\apollo-server-core\dist\ApolloServer.js:361:50)
at new ApolloServerBase (c:\Users\user\Desktop\COVID-19-GRAPHQL\node_modules\apollo-server-core\dist\ApolloServer.js:165:75)
at new ApolloServer (c:\Users\user\Desktop\COVID-19-GRAPHQL\node_modules\apollo-server-express\dist\ApolloServer.js:13:1)
at new ApolloServer (c:\Users\user\Desktop\COVID-19-GRAPHQL\node_modules\apollo-server\dist\index.js:31:9)
at Object. (c:\Users\user\Desktop\COVID-19-GRAPHQL\index.js:5:16)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Module._extensions…js (node:internal/modules/cjs/loader:1308:10)

Node.js v18.15.0

[Done] exited with code=1 in 1.389 seconds

Those look like custom scalars. Do you have them defined in your typedefs anywhere?

You should see these somewhere:

scalar DateTime;
scalar ObjectId;

If that doesn’t solve your problem, can you share your schema or a reproduction?

Thank you Mr. Trevor Scheer for your advice. I truly appreciate it, Sir. It means a lot to me. Although your advice works, I still have challenges querying the server with graphql. If you don’t mind I share the project I am working on with you and see if you could guide me through it. I attached below the project guide and source codes.
Thank you once again for your help.
Yours,
Dr. Kolapo Adedipe, PhD, OCA.

(Attachment __InputValue.pdf is missing)

(Attachment __Field.pdf is missing)

(Attachment __EnumValue.pdf is missing)

(Attachment __DirectiveLocation.pdf is missing)

(Attachment __Directive.pdf is missing)

(Attachment __Schema.pdf is missing)

(Attachment __Type.pdf is missing)

(Attachment Boolean.pdf is missing)

(Attachment __TypeKind.pdf is missing)

(Attachment A Free GraphQL API for Johns Hopkins University COVID-19 Dataset _ MongoDB.pdf is missing)

(Attachment deprecated.pdf is missing)

(Attachment DateTime.pdf is missing)

(Attachment Countries_summarySortByInput.pdf is missing)

(Attachment Countries_summary.pdf is missing)

(Attachment Countries_summaryQueryInput.pdf is missing)

(Attachment Global_and_uLoc.pdf is missing)

(Attachment Global.pdf is missing)

(Attachment Float.pdf is missing)

(Attachment Global_and_u.pdf is missing)

(Attachment Global_and_uLocQueryInput.pdf is missing)

(Attachment GlobalLocQueryInput.pdf is missing)

(Attachment Global_and_uSortByInput.pdf is missing)

(Attachment GlobalLoc.pdf is missing)

(Attachment GlobalQueryInput.pdf is missing)

(Attachment Global_and_uQueryInput.pdf is missing)

(Attachment GlobalSortByInput.pdf is missing)

(Attachment Graphql schema documentation 1.pdf is missing)

(Attachment include.pdf is missing)

(Attachment Int.pdf is missing)

(Attachment ObjectId.pdf is missing)

(Attachment Metadatum.pdf is missing)

(Attachment MetadatumQueryInput.pdf is missing)

(Attachment Query.pdf is missing)

(Attachment schema.graphql is missing)

(Attachment skip.pdf is missing)

(Attachment String.pdf is missing)

(Attachment Us_onlyLoc.pdf is missing)

(Attachment Us_only.pdf is missing)

(Attachment Us_onlyLocQueryInput.pdf is missing)

(Attachment Us_onlyQueryInput.pdf is missing)

(Attachment Us_onlySortByInput.pdf is missing)

Thank you Mr. Trevor Scheer for your advice. I truly appreciate it, Sir. It means a lot to me. Although your advice works, I still have challenges querying the server with graphql. If you don’t mind I share the project I am working on with you and see if you could guide me through it. I attached below part of the project guide and I would like to share with you the remaining parts of the project guide and source codes if you could share your email with me using this platform as a limited number of 1 per media share.
Thank you once again for your help.
Yours,
Dr. Kolapo Adedipe, PhD, OCA.

It looks like you tried to attach a lot files and they failed. Maybe you can share a repository with me instead?

I need more specifics about “what isn’t working” to be helpful.