Skip to content

Commit

Permalink
misc: Add external_id on GraphQL subscription type
Browse files Browse the repository at this point in the history
  • Loading branch information
rsempe committed Sep 2, 2022
1 parent 0de612c commit c7c169c
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 19 deletions.
1 change: 1 addition & 0 deletions app/graphql/types/subscriptions/object.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class Object < Types::BaseObject
graphql_name 'Subscription'

field :id, ID, null: false
field :external_id, String, null: false
field :customer, Types::Customers::Object, null: false
field :plan, Types::Plans::Object, null: false

Expand Down
3 changes: 2 additions & 1 deletion schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -2620,13 +2620,13 @@ type Event {
billableMetricName: String
code: String!
externalCustomerId: String!
externalSubscriptionId: String!
id: ID!
ipAddress: String
matchBillableMetric: Boolean!
matchCustomField: Boolean!
payload: JSON!
receivedAt: ISO8601DateTime!
subscriptionId: String!
timestamp: ISO8601DateTime
transactionId: String
}
Expand Down Expand Up @@ -3393,6 +3393,7 @@ type Subscription {
canceledAt: ISO8601DateTime
createdAt: ISO8601DateTime!
customer: Customer!
externalId: String!
id: ID!
name: String
nextName: String
Expand Down
54 changes: 36 additions & 18 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -7838,6 +7838,24 @@

]
},
{
"name": "externalSubscriptionId",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null,
"args": [

]
},
{
"name": "id",
"description": null,
Expand Down Expand Up @@ -7942,24 +7960,6 @@

]
},
{
"name": "subscriptionId",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null,
"args": [

]
},
{
"name": "timestamp",
"description": null,
Expand Down Expand Up @@ -12087,6 +12087,24 @@

]
},
{
"name": "externalId",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null,
"args": [

]
},
{
"name": "id",
"description": null,
Expand Down

0 comments on commit c7c169c

Please sign in to comment.