플러그인 설정CustomPostUnion을 단일 타입으로 해석하기
CustomPostUnion을 단일 타입으로 해석하기
CustomPostUnion에 추가된 타입이 하나뿐인 경우(예: Post만 있는 경우), CustomPostUnion으로 해석되는 필드를 해당 고유 타입으로 직접 해석되도록 설정할 수 있습니다.
그러려면 Schema Custom Posts의 설정 페이지로 이동하여 "Use single type instead of union type?" 옵션을 클릭하세요:

예를 들어, Post가 유일한 타입인 경우, Root 타입의 customPosts 필드는 해당 타입으로 직접 해석됩니다:
