You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is parsed in the library, and it would be nice to have application/vnd.api+json follow the same pattern.
Either adding this additional type or making a more general change to anything ending with '+json' seem like to viable approaches.
I do see here that one suggestion is overriding, but a more general approach may help avoid the question all together with checking for trailing '+json' and having the override option for more esoteric content types outside the two patterns.
I'd be happy to submit a PR if such a change could be accommodated.
The text was updated successfully, but these errors were encountered:
It would be nice if responses using jsonapi where the content type is application/vnd.api+json would be parsed as JSON.
Right now anything with content type starting with 'application/json' or 'application/hal+json' as seen here:
apollo-server/packages/apollo-datasource-rest/src/RESTDataSource.ts
Line 119 in 0163a5f
and here
apollo-server/packages/apollo-datasource-rest/src/RESTDataSource.ts
Line 120 in 0163a5f
is parsed in the library, and it would be nice to have application/vnd.api+json follow the same pattern.
Either adding this additional type or making a more general change to anything ending with '+json' seem like to viable approaches.
I do see here that one suggestion is overriding, but a more general approach may help avoid the question all together with checking for trailing '+json' and having the override option for more esoteric content types outside the two patterns.
I'd be happy to submit a PR if such a change could be accommodated.
The text was updated successfully, but these errors were encountered: