apollo-studio-community icon indicating copy to clipboard operation
apollo-studio-community copied to clipboard

Deprecations not appearing in the "Deprecations" tab

Open solher opened this issue 4 years ago • 3 comments

Hi, I deprecated a field in my schema using the @deprecated directive and then I pushed it to Apollo Studio.

Now I see it in the SDL:

input SetInSeenlistInput {
	userInfo: UserInfo @deprecated(reason: "...")
}

It's even being displayed as deprecated in the changelog:

Screenshot 2021-05-20 at 19 35 53

But then when I'm going to the Deprecations tab of the Fields, I'm getting:

Screenshot 2021-05-20 at 19 39 49

Am I missing something? Thanks in advance 🙏

solher avatar May 20 '21 17:05 solher

👋 Thanks for the question. That does seem strange, would you mind opening a support conversation from inside Apollo Studio so we can inspect your specific situation?

Screen Shot 2021-05-21 at 10 44 31 am

timbotnik avatar May 21 '21 00:05 timbotnik

Done. Thanks for the quick reply! I'd have another quick question, is there a way to mark fields as deprecated while using introspection? I noticed that introspection removes the annotation so it gave me the feeling that the only way to deprecate fields is to submit the raw graphql schema file to Apollo Studio.

solher avatar May 21 '21 08:05 solher

I noticed you might be trying to deprecate input type fields, which has been a long-standing issue at the GraphQL specification level: https://github.com/graphql/graphql-spec/pull/805. It looks like there is some recent progress and possibly still in-flight work on this in the graphql-js package which might be relevant. https://github.com/graphql/graphql-js/pull/2855 https://github.com/graphql/graphql-js/issues/3048

timbotnik avatar May 24 '21 23:05 timbotnik