4 posts tagged with "typescript"

View All Tags

Public and private schema with Apollo Server and Express

(you can read a better solution here)

The GraphQL Spec that defines how errors should be handled. That means Apollo Server cannot send 401 server error, each request sent http status 200. Even if you have an authenticate issue, it will return a JSON with http status 200. My plan to handle it is to create two shemas, one private and one public.

Apollo Server query with authenticate user
Apollo Server query with authenticate user