Add address input and refactor federation stuff
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
18
js/src/graphql/address.ts
Normal file
18
js/src/graphql/address.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import gql from 'graphql-tag';
|
||||
|
||||
export const ADDRESS = gql`
|
||||
query($query:String!) {
|
||||
searchAddress(
|
||||
query: $query
|
||||
) {
|
||||
description,
|
||||
geom,
|
||||
floor,
|
||||
street,
|
||||
locality,
|
||||
postalCode,
|
||||
region,
|
||||
country
|
||||
}
|
||||
}
|
||||
`;
|
||||
@@ -144,7 +144,8 @@ export const CREATE_EVENT = gql`
|
||||
$category: String!,
|
||||
$beginsOn: DateTime!,
|
||||
$picture: PictureInput,
|
||||
$tags: [String]
|
||||
$tags: [String],
|
||||
$physicalAddress: AddressInput!
|
||||
) {
|
||||
createEvent(
|
||||
title: $title,
|
||||
@@ -153,7 +154,8 @@ export const CREATE_EVENT = gql`
|
||||
organizerActorId: $organizerActorId,
|
||||
category: $category,
|
||||
picture: $picture,
|
||||
tags: $tags
|
||||
tags: $tags,
|
||||
physicalAddress: $physicalAddress
|
||||
) {
|
||||
id,
|
||||
uuid,
|
||||
|
||||
Reference in New Issue
Block a user