Skip to content

Commit

Permalink
updated subsciption field name / input / payload to match convention …
Browse files Browse the repository at this point in the history
…in the subscription blogpost
  • Loading branch information
eyston committed Jan 30, 2016
1 parent b5c519d commit 825539b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions scripts/jest/testschema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type Mutation {
}

type Subscription {
commentCreate(input: CommentCreateSubscriptionInput): CommentCreateSubscriptionResponsePayload
commentCreateSubscribe(input: CommentCreateSubscribeInput): CommentCreateSubscribeResponsePayload
}

input ActorSubscribeInput {
Expand All @@ -42,7 +42,7 @@ input CommentCreateInput {
feedbackId: ID
}

input CommentCreateSubscriptionInput {
input CommentCreateSubscribeInput {
clientSubscriptionId: String,
feedbackId: ID
}
Expand Down Expand Up @@ -130,7 +130,7 @@ type CommentCreateResponsePayload {
feedbackCommentEdge: CommentsEdge
}

type CommentCreateSubscriptionResponsePayload {
type CommentCreateSubscribeResponsePayload {
clientSubscriptionId: String
comment: Comment
feedback: Feedback
Expand Down
10 changes: 5 additions & 5 deletions scripts/jest/testschema.json
Original file line number Diff line number Diff line change
Expand Up @@ -7937,23 +7937,23 @@
"description": null,
"fields": [
{
"name": "commentCreate",
"name": "commentCreateSubscribe",
"description": null,
"args": [
{
"name": "input",
"description": null,
"type": {
"kind": "INPUT_OBJECT",
"name": "CommentCreateSubscriptionInput",
"name": "CommentCreateSubscribeInput",
"ofType": null
},
"defaultValue": null
}
],
"type": {
"kind": "OBJECT",
"name": "CommentCreateSubscriptionResponsePayload",
"name": "CommentCreateSubscribeResponsePayload",
"ofType": null
},
"isDeprecated": false,
Expand All @@ -7967,7 +7967,7 @@
},
{
"kind": "INPUT_OBJECT",
"name": "CommentCreateSubscriptionInput",
"name": "CommentCreateSubscribeInput",
"description": null,
"fields": null,
"inputFields": [
Expand Down Expand Up @@ -7998,7 +7998,7 @@
},
{
"kind": "OBJECT",
"name": "CommentCreateSubscriptionResponsePayload",
"name": "CommentCreateSubscribeResponsePayload",
"description": null,
"fields": [
{
Expand Down
2 changes: 1 addition & 1 deletion src/traversal/__tests__/writeRelayUpdatePayload-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,7 @@ describe('writePayload()', () => {

var subscription = getNode(Relay.QL`
subscription {
commentCreate(input:$input) {
commentCreateSubscribe(input:$input) {
feedback {
id,
topLevelComments {
Expand Down

0 comments on commit 825539b

Please sign in to comment.