3 ms·
One of our requirements is to disable schema downloading in production in apollo server. (We can have it enabled in dev/local). Can this work if that is disable
by coding123 5y ago
One of our requirements is to disable schema downloading in production in apollo server. (We can have it enabled in dev/local). Can this work if that is disabled? (Yes we know this is silly but our auditor caught it)
- wereHamster 5y agoWhat's the reasoning behind not allowing it?
- nguyenkien 5y agoHiding details
- harg 5y agoFrom my understanding this should work as the schema is introspected ahead of time. This gives all the type information needed for the `useQuery` hook to work properly. Just the queries themselves are generated at runtime; there shouldn't be any need to introspect the schema then. Where this might have an issue is with persisted queries. But then you'd need some sort of client/server build tooling to keep them in sync.