Skip to content

added delete server code#71

Merged
cfoskin merged 1 commit intoaerogear-attic:masterfrom
cfoskin:delete-resolver-backend
Jul 26, 2018
Merged

added delete server code#71
cfoskin merged 1 commit intoaerogear-attic:masterfrom
cfoskin:delete-resolver-backend

Conversation

@cfoskin
Copy link
Copy Markdown
Contributor

@cfoskin cfoskin commented Jul 26, 2018

Motivation

The UI will need server code to delete a resolver

What

The server code to remove one resolver

Why

How

create the mutation code and resolver

Verification Steps

Create a schema

type Note {
	id: Int!
	ownerId: Int!
	content: String
}

type Query {
	listNotes: [Note]
}

Create a resolver

mutation upsertResolver {
  upsertResolver(schemaId: 1, dataSourceId: 1, type: "Note", field: "text", requestMapping: "test", responseMapping: "gjg") {
    id
  }
}

Test the new resolver using the following query from graphiql

mutation deleteResolver{
 	deleteResolver(id: 1) {
    id
    type
    requestMapping
    responseMapping
  } 
}

Checklist:

  • Code has been tested locally by PR requester
  • Changes have been successfully verified by another team member

Progress

  • Finished task
  • TODO

Additional Notes

@cfoskin cfoskin requested review from josemigallas and pb82 July 26, 2018 09:37
@pb82
Copy link
Copy Markdown
Contributor

pb82 commented Jul 26, 2018

👀

Copy link
Copy Markdown
Contributor

@pb82 pb82 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, verified locally

@cfoskin cfoskin merged commit ce1d84b into aerogear-attic:master Jul 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants