Skip to content
Snippets Groups Projects
Verified Commit 483833c5 authored by magicfelix's avatar magicfelix Committed by Tom Teichler
Browse files

Rename mutation

parent f81baeff
No related branches found
No related tags found
1 merge request!48Revert "Update pyproject"
......@@ -32,7 +32,7 @@
checkIn (personId) {
this.$apollo.mutate({
mutation: gql`mutation ($eventSlug:String!, $personId:Int!, $comment:String!, $lat:Int, $lon:Int) {
checkIn(eventSlug:$eventSlug, personId:$personId, comment:$comment, lat:$lat, lon:$lon){
checkpointCheckIn(eventSlug:$eventSlug, personId:$personId, comment:$comment, lat:$lat, lon:$lon){
checkpoint {
id
}
......
......@@ -20,7 +20,7 @@ class CheckpointType(DjangoObjectType):
model = Checkpoint
class CheckInMutation(graphene.Mutation):
class CheckpointCheckInMutation(graphene.Mutation):
class Arguments:
event_slug = graphene.String(required=True)
person_id = graphene.Int(required=True)
......@@ -68,8 +68,8 @@ class CheckInMutation(graphene.Mutation):
checkpoint.save()
return CheckInMutation(checkpoint=checkpoint)
return CheckpointCheckInMutation(checkpoint=checkpoint)
class Mutation(graphene.ObjectType):
check_in = CheckInMutation.Field()
checkpoint_check_in = CheckpointCheckInMutation.Field()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment