평소에 GraphQL 설계를 할 때 권한에 따라서 같은 리소스의 타입을 다르게 (예를 들어 프로필 타입을 MyProfile
과 PublicProfile
로 나눈 후 PublicProfile
에만 email
등의 필드를 구현한다던가) 하는 설계를 많이 했었는데 Relay에 호환되게 짜려고 하니 node(id) 구조랑 충돌하는 거 같아서 고민이다... id만으로는 그게 Public인지 My인지 알 수도 없고...
@robin 저도 비슷한 경우가 있었은데요. 그런 필드들을 nullabe로 바꾸는 걸로 해결했어요. 의미론상 문제가좀 있긴하지만요.
If you have a fediverse account, you can quote this note from your own instance. Search https://hackers.pub/ap/notes/01980658-19aa-71ac-8f26-9ca0fc336fc4 on your instance and quote it. (Note that quoting is not supported in Mastodon.)