Omit schema definitions for unused fields

Created on 24 July 2024, 4 months ago
Updated 12 August 2024, 3 months ago

Problem/Motivation

Currently the schema includes all possible field types that are used in all fields of the enabled entity types. This potentially includes dozens of field types for fields that are not exposed to GraphQL. Let's only include what is strictly necessary.

Steps to reproduce

  1. Add a large number of different fields to a Node content type.
  2. Only expose the node label in the GraphQL server.

Expected result

The schema should not include any field definitions, since the label field is a basic String scalar type.

Actual result

A large number of unused field types are included in the schema.

Proposed resolution

Only include the field types for fields that are actually exposed to GraphQL.

Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

🇧🇬Bulgaria pfrenssen Sofia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024