# Have challenges to start my Apollo Server need help

**URL:** <https://community.apollographql.com/t/have-challenges-to-start-my-apollo-server-need-help/5966>\
**Category:** Server\
**Tags:** server\
**Created:** [March 19, 2023, 7:35am UTC](https://community.apollographql.com/t/have-challenges-to-start-my-apollo-server-need-help/5966 "2023-03-19T07:35:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![KOLAPO\_ADEDIPE](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/kolapo_adedipe/32/4055_2.png) [@KOLAPO\_ADEDIPE](https://community.apollographql.com/u/KOLAPO_ADEDIPE)\
**Post date:** [March 19, 2023, 7:35am UTC](https://community.apollographql.com/t/have-challenges-to-start-my-apollo-server-need-help/5966/1 "2023-03-19T07:35:43Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![trevor.scheer](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/trevor.scheer/32/5669_2.png) [@trevor.scheer](https://community.apollographql.com/u/trevor.scheer)\
**Post date:** [March 20, 2023, 2:38pm UTC](https://community.apollographql.com/t/have-challenges-to-start-my-apollo-server-need-help/5966/2 "2023-03-20T14:38:32Z")

</div>

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

You should see these somewhere:

```graphql
scalar DateTime;
scalar ObjectId;

```

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

---

<div class="post-metadata">

**Author:** ![KOLAPO\_ADEDIPE](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/kolapo_adedipe/32/4055_2.png) [@KOLAPO\_ADEDIPE](https://community.apollographql.com/u/KOLAPO_ADEDIPE)\
**Post date:** [March 25, 2023, 7:55am UTC](https://community.apollographql.com/t/have-challenges-to-start-my-apollo-server-need-help/5966/3 "2023-03-25T07:55:23Z")

</div>

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)

---

<div class="post-metadata">

**Author:** ![KOLAPO\_ADEDIPE](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/kolapo_adedipe/32/4055_2.png) [@KOLAPO\_ADEDIPE](https://community.apollographql.com/u/KOLAPO_ADEDIPE)\
**Post date:** [March 25, 2023, 8:22am UTC](https://community.apollographql.com/t/have-challenges-to-start-my-apollo-server-need-help/5966/4 "2023-03-25T08:22:09Z")

</div>

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.

 ![A Free GraphQL API for Johns Hopkins University COVID-19 Dataset _ MongoDB_page-0001.jpg](https://us1.discourse-cdn.com/flex019/uploads/apollographql/original/2X/b/b982774942eb5993e48ff593e30ed8df44f36246.jpeg)

---

<div class="post-metadata">

**Author:** ![trevor.scheer](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/trevor.scheer/32/5669_2.png) [@trevor.scheer](https://community.apollographql.com/u/trevor.scheer)\
**Post date:** [March 28, 2023, 3:24pm UTC](https://community.apollographql.com/t/have-challenges-to-start-my-apollo-server-need-help/5966/5 "2023-03-28T15:24:36Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Justin\_Gonzalez](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/justin_gonzalez/32/5359_2.png) [@Justin\_Gonzalez](https://community.apollographql.com/u/Justin_Gonzalez)\
**Post date:** [February 6, 2025, 8:49pm UTC](https://community.apollographql.com/t/have-challenges-to-start-my-apollo-server-need-help/5966/6 "2025-02-06T20:49:05Z")

</div>

Archived on February 6, 2025, 8:49pm UTC


