diff --git a/app/graphql/types/plans/object.rb b/app/graphql/types/plans/object.rb index 5cddd8392c22..eed8c4fa18c0 100644 --- a/app/graphql/types/plans/object.rb +++ b/app/graphql/types/plans/object.rb @@ -16,7 +16,7 @@ class Object < Types::BaseObject field :interval, Types::Plans::IntervalEnum, null: false field :invoice_display_name, String field :name, String, null: false - field :parent_id, ID, null: true + field :parent, Types::Plans::Object, null: true field :pay_in_advance, Boolean, null: false field :trial_period, Float diff --git a/schema.graphql b/schema.graphql index 612b6705b28a..7f6011227dcf 100644 --- a/schema.graphql +++ b/schema.graphql @@ -3962,7 +3962,7 @@ type Plan { invoiceDisplayName: String name: String! organization: Organization - parentId: ID + parent: Plan payInAdvance: Boolean! subscriptionsCount: Int! taxes: [Tax!] diff --git a/schema.json b/schema.json index 42e9eb6037d3..5ec000335309 100644 --- a/schema.json +++ b/schema.json @@ -16649,11 +16649,11 @@ ] }, { - "name": "parentId", + "name": "parent", "description": null, "type": { - "kind": "SCALAR", - "name": "ID", + "kind": "OBJECT", + "name": "Plan", "ofType": null }, "isDeprecated": false,