Gotò's API

A graphQL documentation for Gotò's API

API Endpoints
https://deway.fr/goto-api/graphql
Version

1.0.0

Queries

alert

Response

Returns an Alert

Arguments
Name Description
id - ID! The id of the record to find.

Example

Query
query alert($id: ID!) {
  alert(id: $id) {
    id
    latitude
    longitude
    type
    createdAt
    hike {
      ...HikeFragment
    }
    author {
      ...UserFragment
    }
  }
}
Variables
{"id": "4"}
Response
{
  "data": {
    "alert": {
      "id": "4",
      "latitude": 987.65,
      "longitude": 987.65,
      "type": "TRACK_CHANGE",
      "createdAt": "2007-12-03T10:15:30Z",
      "hike": Hike,
      "author": User
    }
  }
}

alerts

Response

Returns [Alert!]!

Arguments
Name Description
filter - AlertFilter Specify to filter the records returned. Default = {}
sorting - [AlertSort!] Specify to sort results. Default = []

Example

Query
query alerts(
  $filter: AlertFilter,
  $sorting: [AlertSort!]
) {
  alerts(
    filter: $filter,
    sorting: $sorting
  ) {
    id
    latitude
    longitude
    type
    createdAt
    hike {
      ...HikeFragment
    }
    author {
      ...UserFragment
    }
  }
}
Variables
{"filter": {}, "sorting": [""]}
Response
{
  "data": {
    "alerts": [
      {
        "id": 4,
        "latitude": 987.65,
        "longitude": 123.45,
        "type": "TRACK_CHANGE",
        "createdAt": "2007-12-03T10:15:30Z",
        "hike": Hike,
        "author": User
      }
    ]
  }
}

categories

Response

Returns [Category!]!

Arguments
Name Description
filter - CategoryFilter Specify to filter the records returned. Default = {}
sorting - [CategorySort!] Specify to sort results. Default = []

Example

Query
query categories(
  $filter: CategoryFilter,
  $sorting: [CategorySort!]
) {
  categories(
    filter: $filter,
    sorting: $sorting
  ) {
    id
    name
    createdAt
    hikes {
      ...HikeFragment
    }
    defaultPhoto {
      ...PhotoFragment
    }
  }
}
Variables
{"filter": {}, "sorting": [""]}
Response
{
  "data": {
    "categories": [
      {
        "id": "4",
        "name": "abc123",
        "createdAt": "2007-12-03T10:15:30Z",
        "hikes": Hike,
        "defaultPhoto": Photo
      }
    ]
  }
}

category

Response

Returns a Category

Arguments
Name Description
id - ID! The id of the record to find.

Example

Query
query category($id: ID!) {
  category(id: $id) {
    id
    name
    createdAt
    hikes {
      ...HikeFragment
    }
    defaultPhoto {
      ...PhotoFragment
    }
  }
}
Variables
{"id": "4"}
Response
{
  "data": {
    "category": {
      "id": "4",
      "name": "xyz789",
      "createdAt": "2007-12-03T10:15:30Z",
      "hikes": Hike,
      "defaultPhoto": Photo
    }
  }
}

exist

Response

Returns a Boolean!

Arguments
Name Description
email - String!

Example

Query
query exist($email: String!) {
  exist(email: $email)
}
Variables
{"email": "xyz789"}
Response
{"data": {"exist": true}}

getHikeAlreadyDone

Response

Returns a CustomHikeConnection!

Arguments
Name Description
search - String
limit - Int!
cursor - String Default = ""

Example

Query
query getHikeAlreadyDone(
  $search: String,
  $limit: Int!,
  $cursor: String
) {
  getHikeAlreadyDone(
    search: $search,
    limit: $limit,
    cursor: $cursor
  ) {
    pageInfo {
      ...CustomPageInfoFragment
    }
    edges {
      ...CustomHikeEdgeFragment
    }
    totalCount
  }
}
Variables
{
  "search": "xyz789",
  "limit": 987,
  "cursor": ""
}
Response
{
  "data": {
    "getHikeAlreadyDone": {
      "pageInfo": CustomPageInfo,
      "edges": [CustomHikeEdge],
      "totalCount": 987.65
    }
  }
}

getHikeAround

Response

Returns a CustomHikeConnection!

Arguments
Name Description
lat - Float!
lon - Float!
distance - Float Distance in kilometers. Default = 50
search - String
limit - Int!
cursor - String Default = ""

Example

Query
query getHikeAround(
  $lat: Float!,
  $lon: Float!,
  $distance: Float,
  $search: String,
  $limit: Int!,
  $cursor: String
) {
  getHikeAround(
    lat: $lat,
    lon: $lon,
    distance: $distance,
    search: $search,
    limit: $limit,
    cursor: $cursor
  ) {
    pageInfo {
      ...CustomPageInfoFragment
    }
    edges {
      ...CustomHikeEdgeFragment
    }
    totalCount
  }
}
Variables
{
  "lat": 987.65,
  "lon": 123.45,
  "distance": 50,
  "search": "xyz789",
  "limit": 123,
  "cursor": ""
}
Response
{
  "data": {
    "getHikeAround": {
      "pageInfo": CustomPageInfo,
      "edges": [CustomHikeEdge],
      "totalCount": 123.45
    }
  }
}

getHikePopular

Response

Returns a CustomHikeConnection!

Arguments
Name Description
search - String
limit - Int!
cursor - String Default = ""

Example

Query
query getHikePopular(
  $search: String,
  $limit: Int!,
  $cursor: String
) {
  getHikePopular(
    search: $search,
    limit: $limit,
    cursor: $cursor
  ) {
    pageInfo {
      ...CustomPageInfoFragment
    }
    edges {
      ...CustomHikeEdgeFragment
    }
    totalCount
  }
}
Variables
{
  "search": "abc123",
  "limit": 123,
  "cursor": ""
}
Response
{
  "data": {
    "getHikePopular": {
      "pageInfo": CustomPageInfo,
      "edges": [CustomHikeEdge],
      "totalCount": 987.65
    }
  }
}

hike

Response

Returns a Hike

Arguments
Name Description
id - ID! The id of the record to find.

Example

Query
query hike($id: ID!) {
  hike(id: $id) {
    id
    name
    distance
    elevation
    description
    difficulty
    duration
    track
    latitude
    longitude
    createdAt
    reviewsAggregate {
      ...HikeReviewsAggregateResponseFragment
    }
    alertsAggregate {
      ...HikeAlertsAggregateResponseFragment
    }
    owner {
      ...UserFragment
    }
    category {
      ...CategoryFragment
    }
    tags {
      ...TagFragment
    }
    photos {
      ...PhotoFragment
    }
    pointsOfInterests {
      ...PointOfInterestFragment
    }
    reviews {
      ...ReviewFragment
    }
    alerts {
      ...AlertFragment
    }
    performances {
      ...PerformanceFragment
    }
    distanceFrom
    isLiked
  }
}
Variables
{"id": "4"}
Response
{
  "data": {
    "hike": {
      "id": 4,
      "name": "xyz789",
      "distance": 123.45,
      "elevation": 987.65,
      "description": "xyz789",
      "difficulty": "EASY",
      "duration": 123.45,
      "track": "xyz789",
      "latitude": 123.45,
      "longitude": 123.45,
      "createdAt": "2007-12-03T10:15:30Z",
      "reviewsAggregate": [HikeReviewsAggregateResponse],
      "alertsAggregate": [HikeAlertsAggregateResponse],
      "owner": User,
      "category": Category,
      "tags": [Tag],
      "photos": [Photo],
      "pointsOfInterests": [PointOfInterest],
      "reviews": [Review],
      "alerts": [Alert],
      "performances": [Performance],
      "distanceFrom": 987.65,
      "isLiked": false
    }
  }
}

hikeAggregate

Response

Returns [HikeAggregateResponse!]!

Arguments
Name Description
filter - HikeAggregateFilter Filter to find records to aggregate on

Example

Query
query hikeAggregate($filter: HikeAggregateFilter) {
  hikeAggregate(filter: $filter) {
    groupBy {
      ...HikeAggregateGroupByFragment
    }
    count {
      ...HikeCountAggregateFragment
    }
    sum {
      ...HikeSumAggregateFragment
    }
    avg {
      ...HikeAvgAggregateFragment
    }
    min {
      ...HikeMinAggregateFragment
    }
    max {
      ...HikeMaxAggregateFragment
    }
  }
}
Variables
{"filter": HikeAggregateFilter}
Response
{
  "data": {
    "hikeAggregate": [
      {
        "groupBy": HikeAggregateGroupBy,
        "count": HikeCountAggregate,
        "sum": HikeSumAggregate,
        "avg": HikeAvgAggregate,
        "min": HikeMinAggregate,
        "max": HikeMaxAggregate
      }
    ]
  }
}

hikes

Response

Returns a HikeConnection!

Arguments
Name Description
paging - CursorPaging Limit or page results. Default = {first: 10}
filter - HikeFilter Specify to filter the records returned. Default = {}
sorting - [HikeSort!] Specify to sort results. Default = []

Example

Query
query hikes(
  $paging: CursorPaging,
  $filter: HikeFilter,
  $sorting: [HikeSort!]
) {
  hikes(
    paging: $paging,
    filter: $filter,
    sorting: $sorting
  ) {
    pageInfo {
      ...PageInfoFragment
    }
    edges {
      ...HikeEdgeFragment
    }
    totalCount
  }
}
Variables
{"paging": {"first": 10}, "filter": {}, "sorting": [""]}
Response
{
  "data": {
    "hikes": {
      "pageInfo": PageInfo,
      "edges": [HikeEdge],
      "totalCount": 987
    }
  }
}

performance

Response

Returns a Performance

Arguments
Name Description
id - ID! The id of the record to find.

Example

Query
query performance($id: ID!) {
  performance(id: $id) {
    id
    date
    distance
    elevation
    duration
    track
    createdAt
    user {
      ...UserFragment
    }
    hike {
      ...HikeFragment
    }
  }
}
Variables
{"id": 4}
Response
{
  "data": {
    "performance": {
      "id": "4",
      "date": "2007-12-03T10:15:30Z",
      "distance": 123.45,
      "elevation": 987.65,
      "duration": 123.45,
      "track": "abc123",
      "createdAt": "2007-12-03T10:15:30Z",
      "user": User,
      "hike": Hike
    }
  }
}

performanceAggregate

Arguments
Name Description
filter - PerformanceAggregateFilter Filter to find records to aggregate on

Example

Query
query performanceAggregate($filter: PerformanceAggregateFilter) {
  performanceAggregate(filter: $filter) {
    groupBy {
      ...PerformanceAggregateGroupByFragment
    }
    count {
      ...PerformanceCountAggregateFragment
    }
    sum {
      ...PerformanceSumAggregateFragment
    }
    avg {
      ...PerformanceAvgAggregateFragment
    }
    min {
      ...PerformanceMinAggregateFragment
    }
    max {
      ...PerformanceMaxAggregateFragment
    }
  }
}
Variables
{"filter": PerformanceAggregateFilter}
Response
{
  "data": {
    "performanceAggregate": [
      {
        "groupBy": PerformanceAggregateGroupBy,
        "count": PerformanceCountAggregate,
        "sum": PerformanceSumAggregate,
        "avg": PerformanceAvgAggregate,
        "min": PerformanceMinAggregate,
        "max": PerformanceMaxAggregate
      }
    ]
  }
}

performances

Response

Returns [Performance!]!

Arguments
Name Description
filter - PerformanceFilter Specify to filter the records returned. Default = {}
sorting - [PerformanceSort!] Specify to sort results. Default = []

Example

Query
query performances(
  $filter: PerformanceFilter,
  $sorting: [PerformanceSort!]
) {
  performances(
    filter: $filter,
    sorting: $sorting
  ) {
    id
    date
    distance
    elevation
    duration
    track
    createdAt
    user {
      ...UserFragment
    }
    hike {
      ...HikeFragment
    }
  }
}
Variables
{"filter": {}, "sorting": [""]}
Response
{
  "data": {
    "performances": [
      {
        "id": "4",
        "date": "2007-12-03T10:15:30Z",
        "distance": 987.65,
        "elevation": 987.65,
        "duration": 987.65,
        "track": "abc123",
        "createdAt": "2007-12-03T10:15:30Z",
        "user": User,
        "hike": Hike
      }
    ]
  }
}

pointOfInterest

Response

Returns a PointOfInterest

Arguments
Name Description
id - ID! The id of the record to find.

Example

Query
query pointOfInterest($id: ID!) {
  pointOfInterest(id: $id) {
    id
    name
    description
    latitude
    longitude
    url
    createdAt
    photo {
      ...PhotoFragment
    }
    hikes {
      ...HikeFragment
    }
  }
}
Variables
{"id": "4"}
Response
{
  "data": {
    "pointOfInterest": {
      "id": 4,
      "name": "xyz789",
      "description": "xyz789",
      "latitude": 987.65,
      "longitude": 123.45,
      "url": "xyz789",
      "createdAt": "2007-12-03T10:15:30Z",
      "photo": Photo,
      "hikes": [Hike]
    }
  }
}

pointOfInterests

Response

Returns [PointOfInterest!]!

Arguments
Name Description
filter - PointOfInterestFilter Specify to filter the records returned. Default = {}
sorting - [PointOfInterestSort!] Specify to sort results. Default = []

Example

Query
query pointOfInterests(
  $filter: PointOfInterestFilter,
  $sorting: [PointOfInterestSort!]
) {
  pointOfInterests(
    filter: $filter,
    sorting: $sorting
  ) {
    id
    name
    description
    latitude
    longitude
    url
    createdAt
    photo {
      ...PhotoFragment
    }
    hikes {
      ...HikeFragment
    }
  }
}
Variables
{"filter": {}, "sorting": [""]}
Response
{
  "data": {
    "pointOfInterests": [
      {
        "id": "4",
        "name": "abc123",
        "description": "abc123",
        "latitude": 987.65,
        "longitude": 123.45,
        "url": "abc123",
        "createdAt": "2007-12-03T10:15:30Z",
        "photo": Photo,
        "hikes": [Hike]
      }
    ]
  }
}

review

Response

Returns a Review

Arguments
Name Description
id - ID! The id of the record to find.

Example

Query
query review($id: ID!) {
  review(id: $id) {
    id
    rating
    createdAt
    user {
      ...UserFragment
    }
    hike {
      ...HikeFragment
    }
  }
}
Variables
{"id": "4"}
Response
{
  "data": {
    "review": {
      "id": 4,
      "rating": 123.45,
      "createdAt": "2007-12-03T10:15:30Z",
      "user": User,
      "hike": Hike
    }
  }
}

reviewAggregate

Response

Returns [ReviewAggregateResponse!]!

Arguments
Name Description
filter - ReviewAggregateFilter Filter to find records to aggregate on

Example

Query
query reviewAggregate($filter: ReviewAggregateFilter) {
  reviewAggregate(filter: $filter) {
    groupBy {
      ...ReviewAggregateGroupByFragment
    }
    count {
      ...ReviewCountAggregateFragment
    }
    sum {
      ...ReviewSumAggregateFragment
    }
    avg {
      ...ReviewAvgAggregateFragment
    }
    min {
      ...ReviewMinAggregateFragment
    }
    max {
      ...ReviewMaxAggregateFragment
    }
  }
}
Variables
{"filter": ReviewAggregateFilter}
Response
{
  "data": {
    "reviewAggregate": [
      {
        "groupBy": ReviewAggregateGroupBy,
        "count": ReviewCountAggregate,
        "sum": ReviewSumAggregate,
        "avg": ReviewAvgAggregate,
        "min": ReviewMinAggregate,
        "max": ReviewMaxAggregate
      }
    ]
  }
}

reviews

Response

Returns [Review!]!

Arguments
Name Description
filter - ReviewFilter Specify to filter the records returned. Default = {}
sorting - [ReviewSort!] Specify to sort results. Default = []

Example

Query
query reviews(
  $filter: ReviewFilter,
  $sorting: [ReviewSort!]
) {
  reviews(
    filter: $filter,
    sorting: $sorting
  ) {
    id
    rating
    createdAt
    user {
      ...UserFragment
    }
    hike {
      ...HikeFragment
    }
  }
}
Variables
{"filter": {}, "sorting": [""]}
Response
{
  "data": {
    "reviews": [
      {
        "id": 4,
        "rating": 987.65,
        "createdAt": "2007-12-03T10:15:30Z",
        "user": User,
        "hike": Hike
      }
    ]
  }
}

table

Response

Returns a Table

Arguments
Name Description
id - ID! The id of the record to find.

Example

Query
query table($id: ID!) {
  table(id: $id) {
    id
    name
    createdAt
    hikes {
      ...HikeFragment
    }
    owner {
      ...UserFragment
    }
  }
}
Variables
{"id": "4"}
Response
{
  "data": {
    "table": {
      "id": "4",
      "name": "xyz789",
      "createdAt": "2007-12-03T10:15:30Z",
      "hikes": Hike,
      "owner": User
    }
  }
}

tables

Response

Returns [Table!]!

Arguments
Name Description
filter - TableFilter Specify to filter the records returned. Default = {}
sorting - [TableSort!] Specify to sort results. Default = []

Example

Query
query tables(
  $filter: TableFilter,
  $sorting: [TableSort!]
) {
  tables(
    filter: $filter,
    sorting: $sorting
  ) {
    id
    name
    createdAt
    hikes {
      ...HikeFragment
    }
    owner {
      ...UserFragment
    }
  }
}
Variables
{"filter": {}, "sorting": [""]}
Response
{
  "data": {
    "tables": [
      {
        "id": "4",
        "name": "abc123",
        "createdAt": "2007-12-03T10:15:30Z",
        "hikes": Hike,
        "owner": User
      }
    ]
  }
}

tag

Response

Returns a Tag

Arguments
Name Description
id - ID! The id of the record to find.

Example

Query
query tag($id: ID!) {
  tag(id: $id) {
    id
    name
    createdAt
    hikes {
      ...HikeFragment
    }
  }
}
Variables
{"id": 4}
Response
{
  "data": {
    "tag": {
      "id": 4,
      "name": "abc123",
      "createdAt": "2007-12-03T10:15:30Z",
      "hikes": [Hike]
    }
  }
}

tags

Response

Returns [Tag!]!

Arguments
Name Description
filter - TagFilter Specify to filter the records returned. Default = {}
sorting - [TagSort!] Specify to sort results. Default = []

Example

Query
query tags(
  $filter: TagFilter,
  $sorting: [TagSort!]
) {
  tags(
    filter: $filter,
    sorting: $sorting
  ) {
    id
    name
    createdAt
    hikes {
      ...HikeFragment
    }
  }
}
Variables
{"filter": {}, "sorting": [""]}
Response
{
  "data": {
    "tags": [
      {
        "id": 4,
        "name": "abc123",
        "createdAt": "2007-12-03T10:15:30Z",
        "hikes": [Hike]
      }
    ]
  }
}

user

Response

Returns a User

Arguments
Name Description
id - ID! The id of the record to find.

Example

Query
query user($id: ID!) {
  user(id: $id) {
    id
    pseudo
    email
    password
    publicKey
    credidential
    public
    createdAt
    friendsAggregate {
      ...UserFriendsAggregateResponseFragment
    }
    performancesAggregate {
      ...UserPerformancesAggregateResponseFragment
    }
    reviewsAggregate {
      ...UserReviewsAggregateResponseFragment
    }
    likesAggregate {
      ...UserLikesAggregateResponseFragment
    }
    tablesAggregate {
      ...UserTablesAggregateResponseFragment
    }
    avatar {
      ...PhotoFragment
    }
    friends {
      ...UserFragment
    }
    performances {
      ...PerformanceFragment
    }
    reviews {
      ...ReviewFragment
    }
    likes {
      ...UserLikesConnectionFragment
    }
    tables {
      ...TableFragment
    }
    isFriend
  }
}
Variables
{"id": 4}
Response
{
  "data": {
    "user": {
      "id": "4",
      "pseudo": "abc123",
      "email": "abc123",
      "password": "abc123",
      "publicKey": "abc123",
      "credidential": 987.65,
      "public": false,
      "createdAt": "2007-12-03T10:15:30Z",
      "friendsAggregate": [UserFriendsAggregateResponse],
      "performancesAggregate": [
        UserPerformancesAggregateResponse
      ],
      "reviewsAggregate": [UserReviewsAggregateResponse],
      "likesAggregate": [UserLikesAggregateResponse],
      "tablesAggregate": [UserTablesAggregateResponse],
      "avatar": Photo,
      "friends": [User],
      "performances": [Performance],
      "reviews": [Review],
      "likes": UserLikesConnection,
      "tables": [Table],
      "isFriend": true
    }
  }
}

userAggregate

Response

Returns [UserAggregateResponse!]!

Arguments
Name Description
filter - UserAggregateFilter Filter to find records to aggregate on

Example

Query
query userAggregate($filter: UserAggregateFilter) {
  userAggregate(filter: $filter) {
    groupBy {
      ...UserAggregateGroupByFragment
    }
    count {
      ...UserCountAggregateFragment
    }
    sum {
      ...UserSumAggregateFragment
    }
    avg {
      ...UserAvgAggregateFragment
    }
    min {
      ...UserMinAggregateFragment
    }
    max {
      ...UserMaxAggregateFragment
    }
  }
}
Variables
{"filter": UserAggregateFilter}
Response
{
  "data": {
    "userAggregate": [
      {
        "groupBy": UserAggregateGroupBy,
        "count": UserCountAggregate,
        "sum": UserSumAggregate,
        "avg": UserAvgAggregate,
        "min": UserMinAggregate,
        "max": UserMaxAggregate
      }
    ]
  }
}

users

Response

Returns a UserConnection!

Arguments
Name Description
paging - CursorPaging Limit or page results. Default = {first: 10}
filter - UserFilter Specify to filter the records returned. Default = {}
sorting - [UserSort!] Specify to sort results. Default = []

Example

Query
query users(
  $paging: CursorPaging,
  $filter: UserFilter,
  $sorting: [UserSort!]
) {
  users(
    paging: $paging,
    filter: $filter,
    sorting: $sorting
  ) {
    pageInfo {
      ...PageInfoFragment
    }
    edges {
      ...UserEdgeFragment
    }
    totalCount
  }
}
Variables
{"paging": {"first": 10}, "filter": {}, "sorting": [""]}
Response
{
  "data": {
    "users": {
      "pageInfo": PageInfo,
      "edges": [UserEdge],
      "totalCount": 123
    }
  }
}

whoami

Response

Returns a User!

Example

Query
query whoami {
  whoami {
    id
    pseudo
    email
    password
    publicKey
    credidential
    public
    createdAt
    friendsAggregate {
      ...UserFriendsAggregateResponseFragment
    }
    performancesAggregate {
      ...UserPerformancesAggregateResponseFragment
    }
    reviewsAggregate {
      ...UserReviewsAggregateResponseFragment
    }
    likesAggregate {
      ...UserLikesAggregateResponseFragment
    }
    tablesAggregate {
      ...UserTablesAggregateResponseFragment
    }
    avatar {
      ...PhotoFragment
    }
    friends {
      ...UserFragment
    }
    performances {
      ...PerformanceFragment
    }
    reviews {
      ...ReviewFragment
    }
    likes {
      ...UserLikesConnectionFragment
    }
    tables {
      ...TableFragment
    }
    isFriend
  }
}
Response
{
  "data": {
    "whoami": {
      "id": "4",
      "pseudo": "xyz789",
      "email": "abc123",
      "password": "abc123",
      "publicKey": "xyz789",
      "credidential": 987.65,
      "public": false,
      "createdAt": "2007-12-03T10:15:30Z",
      "friendsAggregate": [UserFriendsAggregateResponse],
      "performancesAggregate": [
        UserPerformancesAggregateResponse
      ],
      "reviewsAggregate": [UserReviewsAggregateResponse],
      "likesAggregate": [UserLikesAggregateResponse],
      "tablesAggregate": [UserTablesAggregateResponse],
      "avatar": Photo,
      "friends": [User],
      "performances": [Performance],
      "reviews": [Review],
      "likes": UserLikesConnection,
      "tables": [Table],
      "isFriend": true
    }
  }
}

Mutations

addFriend

Response

Returns a User!

Arguments
Name Description
id - String!

Example

Query
mutation addFriend($id: String!) {
  addFriend(id: $id) {
    id
    pseudo
    email
    password
    publicKey
    credidential
    public
    createdAt
    friendsAggregate {
      ...UserFriendsAggregateResponseFragment
    }
    performancesAggregate {
      ...UserPerformancesAggregateResponseFragment
    }
    reviewsAggregate {
      ...UserReviewsAggregateResponseFragment
    }
    likesAggregate {
      ...UserLikesAggregateResponseFragment
    }
    tablesAggregate {
      ...UserTablesAggregateResponseFragment
    }
    avatar {
      ...PhotoFragment
    }
    friends {
      ...UserFragment
    }
    performances {
      ...PerformanceFragment
    }
    reviews {
      ...ReviewFragment
    }
    likes {
      ...UserLikesConnectionFragment
    }
    tables {
      ...TableFragment
    }
    isFriend
  }
}
Variables
{"id": "abc123"}
Response
{
  "data": {
    "addFriend": {
      "id": 4,
      "pseudo": "abc123",
      "email": "xyz789",
      "password": "xyz789",
      "publicKey": "xyz789",
      "credidential": 987.65,
      "public": false,
      "createdAt": "2007-12-03T10:15:30Z",
      "friendsAggregate": [UserFriendsAggregateResponse],
      "performancesAggregate": [
        UserPerformancesAggregateResponse
      ],
      "reviewsAggregate": [UserReviewsAggregateResponse],
      "likesAggregate": [UserLikesAggregateResponse],
      "tablesAggregate": [UserTablesAggregateResponse],
      "avatar": Photo,
      "friends": [User],
      "performances": [Performance],
      "reviews": [Review],
      "likes": UserLikesConnection,
      "tables": [Table],
      "isFriend": true
    }
  }
}

addReview

Response

Returns a Review!

Arguments
Name Description
input - ReviewInput!

Example

Query
mutation addReview($input: ReviewInput!) {
  addReview(input: $input) {
    id
    rating
    createdAt
    user {
      ...UserFragment
    }
    hike {
      ...HikeFragment
    }
  }
}
Variables
{"input": ReviewInput}
Response
{
  "data": {
    "addReview": {
      "id": "4",
      "rating": 987.65,
      "createdAt": "2007-12-03T10:15:30Z",
      "user": User,
      "hike": Hike
    }
  }
}

addTagToHike

Response

Returns a Hike!

Arguments
Name Description
hikeId - String!
tagId - String!

Example

Query
mutation addTagToHike(
  $hikeId: String!,
  $tagId: String!
) {
  addTagToHike(
    hikeId: $hikeId,
    tagId: $tagId
  ) {
    id
    name
    distance
    elevation
    description
    difficulty
    duration
    track
    latitude
    longitude
    createdAt
    reviewsAggregate {
      ...HikeReviewsAggregateResponseFragment
    }
    alertsAggregate {
      ...HikeAlertsAggregateResponseFragment
    }
    owner {
      ...UserFragment
    }
    category {
      ...CategoryFragment
    }
    tags {
      ...TagFragment
    }
    photos {
      ...PhotoFragment
    }
    pointsOfInterests {
      ...PointOfInterestFragment
    }
    reviews {
      ...ReviewFragment
    }
    alerts {
      ...AlertFragment
    }
    performances {
      ...PerformanceFragment
    }
    distanceFrom
    isLiked
  }
}
Variables
{
  "hikeId": "xyz789",
  "tagId": "xyz789"
}
Response
{
  "data": {
    "addTagToHike": {
      "id": "4",
      "name": "abc123",
      "distance": 123.45,
      "elevation": 123.45,
      "description": "abc123",
      "difficulty": "EASY",
      "duration": 123.45,
      "track": "xyz789",
      "latitude": 123.45,
      "longitude": 987.65,
      "createdAt": "2007-12-03T10:15:30Z",
      "reviewsAggregate": [HikeReviewsAggregateResponse],
      "alertsAggregate": [HikeAlertsAggregateResponse],
      "owner": User,
      "category": Category,
      "tags": [Tag],
      "photos": [Photo],
      "pointsOfInterests": [PointOfInterest],
      "reviews": [Review],
      "alerts": [Alert],
      "performances": [Performance],
      "distanceFrom": 123.45,
      "isLiked": true
    }
  }
}

changeAvatar

Response

Returns a Photo!

Arguments
Name Description
input - PhotoInput!

Example

Query
mutation changeAvatar($input: PhotoInput!) {
  changeAvatar(input: $input) {
    id
    filename
    createdAt
  }
}
Variables
{"input": PhotoInput}
Response
{
  "data": {
    "changeAvatar": {
      "id": "4",
      "filename": "xyz789",
      "createdAt": "2007-12-03T10:15:30Z"
    }
  }
}

createCategory

Response

Returns a Category!

Arguments
Name Description
input - CategoryInput!

Example

Query
mutation createCategory($input: CategoryInput!) {
  createCategory(input: $input) {
    id
    name
    createdAt
    hikes {
      ...HikeFragment
    }
    defaultPhoto {
      ...PhotoFragment
    }
  }
}
Variables
{"input": CategoryInput}
Response
{
  "data": {
    "createCategory": {
      "id": 4,
      "name": "abc123",
      "createdAt": "2007-12-03T10:15:30Z",
      "hikes": Hike,
      "defaultPhoto": Photo
    }
  }
}

createHike

Response

Returns a Hike!

Arguments
Name Description
input - HikeInput!

Example

Query
mutation createHike($input: HikeInput!) {
  createHike(input: $input) {
    id
    name
    distance
    elevation
    description
    difficulty
    duration
    track
    latitude
    longitude
    createdAt
    reviewsAggregate {
      ...HikeReviewsAggregateResponseFragment
    }
    alertsAggregate {
      ...HikeAlertsAggregateResponseFragment
    }
    owner {
      ...UserFragment
    }
    category {
      ...CategoryFragment
    }
    tags {
      ...TagFragment
    }
    photos {
      ...PhotoFragment
    }
    pointsOfInterests {
      ...PointOfInterestFragment
    }
    reviews {
      ...ReviewFragment
    }
    alerts {
      ...AlertFragment
    }
    performances {
      ...PerformanceFragment
    }
    distanceFrom
    isLiked
  }
}
Variables
{"input": HikeInput}
Response
{
  "data": {
    "createHike": {
      "id": "4",
      "name": "xyz789",
      "distance": 987.65,
      "elevation": 987.65,
      "description": "abc123",
      "difficulty": "EASY",
      "duration": 987.65,
      "track": "abc123",
      "latitude": 987.65,
      "longitude": 987.65,
      "createdAt": "2007-12-03T10:15:30Z",
      "reviewsAggregate": [HikeReviewsAggregateResponse],
      "alertsAggregate": [HikeAlertsAggregateResponse],
      "owner": User,
      "category": Category,
      "tags": [Tag],
      "photos": [Photo],
      "pointsOfInterests": [PointOfInterest],
      "reviews": [Review],
      "alerts": [Alert],
      "performances": [Performance],
      "distanceFrom": 987.65,
      "isLiked": true
    }
  }
}

createPerformance

Response

Returns a Performance!

Arguments
Name Description
input - PerformanceInput!

Example

Query
mutation createPerformance($input: PerformanceInput!) {
  createPerformance(input: $input) {
    id
    date
    distance
    elevation
    duration
    track
    createdAt
    user {
      ...UserFragment
    }
    hike {
      ...HikeFragment
    }
  }
}
Variables
{"input": PerformanceInput}
Response
{
  "data": {
    "createPerformance": {
      "id": "4",
      "date": "2007-12-03T10:15:30Z",
      "distance": 123.45,
      "elevation": 123.45,
      "duration": 123.45,
      "track": "abc123",
      "createdAt": "2007-12-03T10:15:30Z",
      "user": User,
      "hike": Hike
    }
  }
}

createPhoto

Response

Returns a Photo!

Arguments
Name Description
input - PhotoInput!

Example

Query
mutation createPhoto($input: PhotoInput!) {
  createPhoto(input: $input) {
    id
    filename
    createdAt
  }
}
Variables
{"input": PhotoInput}
Response
{
  "data": {
    "createPhoto": {
      "id": "4",
      "filename": "xyz789",
      "createdAt": "2007-12-03T10:15:30Z"
    }
  }
}

createPointOfInterest

Response

Returns a PointOfInterest!

Arguments
Name Description
input - PointOfInterestInput!

Example

Query
mutation createPointOfInterest($input: PointOfInterestInput!) {
  createPointOfInterest(input: $input) {
    id
    name
    description
    latitude
    longitude
    url
    createdAt
    photo {
      ...PhotoFragment
    }
    hikes {
      ...HikeFragment
    }
  }
}
Variables
{"input": PointOfInterestInput}
Response
{
  "data": {
    "createPointOfInterest": {
      "id": "4",
      "name": "xyz789",
      "description": "abc123",
      "latitude": 123.45,
      "longitude": 987.65,
      "url": "xyz789",
      "createdAt": "2007-12-03T10:15:30Z",
      "photo": Photo,
      "hikes": [Hike]
    }
  }
}

createTable

Response

Returns a Table!

Arguments
Name Description
input - TableInput!

Example

Query
mutation createTable($input: TableInput!) {
  createTable(input: $input) {
    id
    name
    createdAt
    hikes {
      ...HikeFragment
    }
    owner {
      ...UserFragment
    }
  }
}
Variables
{"input": TableInput}
Response
{
  "data": {
    "createTable": {
      "id": 4,
      "name": "abc123",
      "createdAt": "2007-12-03T10:15:30Z",
      "hikes": Hike,
      "owner": User
    }
  }
}

createTag

Response

Returns a Tag!

Arguments
Name Description
input - TagInput!

Example

Query
mutation createTag($input: TagInput!) {
  createTag(input: $input) {
    id
    name
    createdAt
    hikes {
      ...HikeFragment
    }
  }
}
Variables
{"input": TagInput}
Response
{
  "data": {
    "createTag": {
      "id": "4",
      "name": "abc123",
      "createdAt": "2007-12-03T10:15:30Z",
      "hikes": [Hike]
    }
  }
}

createUser

Response

Returns a User!

Arguments
Name Description
input - UserInput!

Example

Query
mutation createUser($input: UserInput!) {
  createUser(input: $input) {
    id
    pseudo
    email
    password
    publicKey
    credidential
    public
    createdAt
    friendsAggregate {
      ...UserFriendsAggregateResponseFragment
    }
    performancesAggregate {
      ...UserPerformancesAggregateResponseFragment
    }
    reviewsAggregate {
      ...UserReviewsAggregateResponseFragment
    }
    likesAggregate {
      ...UserLikesAggregateResponseFragment
    }
    tablesAggregate {
      ...UserTablesAggregateResponseFragment
    }
    avatar {
      ...PhotoFragment
    }
    friends {
      ...UserFragment
    }
    performances {
      ...PerformanceFragment
    }
    reviews {
      ...ReviewFragment
    }
    likes {
      ...UserLikesConnectionFragment
    }
    tables {
      ...TableFragment
    }
    isFriend
  }
}
Variables
{"input": UserInput}
Response
{
  "data": {
    "createUser": {
      "id": 4,
      "pseudo": "xyz789",
      "email": "xyz789",
      "password": "abc123",
      "publicKey": "xyz789",
      "credidential": 987.65,
      "public": false,
      "createdAt": "2007-12-03T10:15:30Z",
      "friendsAggregate": [UserFriendsAggregateResponse],
      "performancesAggregate": [
        UserPerformancesAggregateResponse
      ],
      "reviewsAggregate": [UserReviewsAggregateResponse],
      "likesAggregate": [UserLikesAggregateResponse],
      "tablesAggregate": [UserTablesAggregateResponse],
      "avatar": Photo,
      "friends": [User],
      "performances": [Performance],
      "reviews": [Review],
      "likes": UserLikesConnection,
      "tables": [Table],
      "isFriend": true
    }
  }
}

deleteAccount

Response

Returns a User!

Example

Query
mutation deleteAccount {
  deleteAccount {
    id
    pseudo
    email
    password
    publicKey
    credidential
    public
    createdAt
    friendsAggregate {
      ...UserFriendsAggregateResponseFragment
    }
    performancesAggregate {
      ...UserPerformancesAggregateResponseFragment
    }
    reviewsAggregate {
      ...UserReviewsAggregateResponseFragment
    }
    likesAggregate {
      ...UserLikesAggregateResponseFragment
    }
    tablesAggregate {
      ...UserTablesAggregateResponseFragment
    }
    avatar {
      ...PhotoFragment
    }
    friends {
      ...UserFragment
    }
    performances {
      ...PerformanceFragment
    }
    reviews {
      ...ReviewFragment
    }
    likes {
      ...UserLikesConnectionFragment
    }
    tables {
      ...TableFragment
    }
    isFriend
  }
}
Response
{
  "data": {
    "deleteAccount": {
      "id": "4",
      "pseudo": "abc123",
      "email": "xyz789",
      "password": "xyz789",
      "publicKey": "abc123",
      "credidential": 123.45,
      "public": true,
      "createdAt": "2007-12-03T10:15:30Z",
      "friendsAggregate": [UserFriendsAggregateResponse],
      "performancesAggregate": [
        UserPerformancesAggregateResponse
      ],
      "reviewsAggregate": [UserReviewsAggregateResponse],
      "likesAggregate": [UserLikesAggregateResponse],
      "tablesAggregate": [UserTablesAggregateResponse],
      "avatar": Photo,
      "friends": [User],
      "performances": [Performance],
      "reviews": [Review],
      "likes": UserLikesConnection,
      "tables": [Table],
      "isFriend": false
    }
  }
}

deleteAlert

Response

Returns an Alert!

Arguments
Name Description
id - String!

Example

Query
mutation deleteAlert($id: String!) {
  deleteAlert(id: $id) {
    id
    latitude
    longitude
    type
    createdAt
    hike {
      ...HikeFragment
    }
    author {
      ...UserFragment
    }
  }
}
Variables
{"id": "abc123"}
Response
{
  "data": {
    "deleteAlert": {
      "id": 4,
      "latitude": 987.65,
      "longitude": 987.65,
      "type": "TRACK_CHANGE",
      "createdAt": "2007-12-03T10:15:30Z",
      "hike": Hike,
      "author": User
    }
  }
}

deleteCategory

Response

Returns a Category!

Arguments
Name Description
id - String!

Example

Query
mutation deleteCategory($id: String!) {
  deleteCategory(id: $id) {
    id
    name
    createdAt
    hikes {
      ...HikeFragment
    }
    defaultPhoto {
      ...PhotoFragment
    }
  }
}
Variables
{"id": "abc123"}
Response
{
  "data": {
    "deleteCategory": {
      "id": 4,
      "name": "abc123",
      "createdAt": "2007-12-03T10:15:30Z",
      "hikes": Hike,
      "defaultPhoto": Photo
    }
  }
}

deleteHike

Response

Returns a Hike!

Arguments
Name Description
id - String!

Example

Query
mutation deleteHike($id: String!) {
  deleteHike(id: $id) {
    id
    name
    distance
    elevation
    description
    difficulty
    duration
    track
    latitude
    longitude
    createdAt
    reviewsAggregate {
      ...HikeReviewsAggregateResponseFragment
    }
    alertsAggregate {
      ...HikeAlertsAggregateResponseFragment
    }
    owner {
      ...UserFragment
    }
    category {
      ...CategoryFragment
    }
    tags {
      ...TagFragment
    }
    photos {
      ...PhotoFragment
    }
    pointsOfInterests {
      ...PointOfInterestFragment
    }
    reviews {
      ...ReviewFragment
    }
    alerts {
      ...AlertFragment
    }
    performances {
      ...PerformanceFragment
    }
    distanceFrom
    isLiked
  }
}
Variables
{"id": "xyz789"}
Response
{
  "data": {
    "deleteHike": {
      "id": 4,
      "name": "abc123",
      "distance": 123.45,
      "elevation": 123.45,
      "description": "xyz789",
      "difficulty": "EASY",
      "duration": 987.65,
      "track": "xyz789",
      "latitude": 987.65,
      "longitude": 123.45,
      "createdAt": "2007-12-03T10:15:30Z",
      "reviewsAggregate": [HikeReviewsAggregateResponse],
      "alertsAggregate": [HikeAlertsAggregateResponse],
      "owner": User,
      "category": Category,
      "tags": [Tag],
      "photos": [Photo],
      "pointsOfInterests": [PointOfInterest],
      "reviews": [Review],
      "alerts": [Alert],
      "performances": [Performance],
      "distanceFrom": 987.65,
      "isLiked": false
    }
  }
}

deletePerformance

Response

Returns a Performance!

Arguments
Name Description
id - String!

Example

Query
mutation deletePerformance($id: String!) {
  deletePerformance(id: $id) {
    id
    date
    distance
    elevation
    duration
    track
    createdAt
    user {
      ...UserFragment
    }
    hike {
      ...HikeFragment
    }
  }
}
Variables
{"id": "abc123"}
Response
{
  "data": {
    "deletePerformance": {
      "id": 4,
      "date": "2007-12-03T10:15:30Z",
      "distance": 123.45,
      "elevation": 123.45,
      "duration": 987.65,
      "track": "abc123",
      "createdAt": "2007-12-03T10:15:30Z",
      "user": User,
      "hike": Hike
    }
  }
}

deletePointOfInterest

Response

Returns a PointOfInterest!

Arguments
Name Description
id - String!

Example

Query
mutation deletePointOfInterest($id: String!) {
  deletePointOfInterest(id: $id) {
    id
    name
    description
    latitude
    longitude
    url
    createdAt
    photo {
      ...PhotoFragment
    }
    hikes {
      ...HikeFragment
    }
  }
}
Variables
{"id": "abc123"}
Response
{
  "data": {
    "deletePointOfInterest": {
      "id": 4,
      "name": "abc123",
      "description": "abc123",
      "latitude": 987.65,
      "longitude": 123.45,
      "url": "abc123",
      "createdAt": "2007-12-03T10:15:30Z",
      "photo": Photo,
      "hikes": [Hike]
    }
  }
}

deleteReview

Response

Returns a Review!

Arguments
Name Description
id - String!

Example

Query
mutation deleteReview($id: String!) {
  deleteReview(id: $id) {
    id
    rating
    createdAt
    user {
      ...UserFragment
    }
    hike {
      ...HikeFragment
    }
  }
}
Variables
{"id": "abc123"}
Response
{
  "data": {
    "deleteReview": {
      "id": 4,
      "rating": 987.65,
      "createdAt": "2007-12-03T10:15:30Z",
      "user": User,
      "hike": Hike
    }
  }
}

deleteTable

Response

Returns a Table!

Arguments
Name Description
id - String!

Example

Query
mutation deleteTable($id: String!) {
  deleteTable(id: $id) {
    id
    name
    createdAt
    hikes {
      ...HikeFragment
    }
    owner {
      ...UserFragment
    }
  }
}
Variables
{"id": "xyz789"}
Response
{
  "data": {
    "deleteTable": {
      "id": 4,
      "name": "xyz789",
      "createdAt": "2007-12-03T10:15:30Z",
      "hikes": Hike,
      "owner": User
    }
  }
}

deleteTag

Response

Returns a Tag!

Arguments
Name Description
id - String!

Example

Query
mutation deleteTag($id: String!) {
  deleteTag(id: $id) {
    id
    name
    createdAt
    hikes {
      ...HikeFragment
    }
  }
}
Variables
{"id": "xyz789"}
Response
{
  "data": {
    "deleteTag": {
      "id": 4,
      "name": "xyz789",
      "createdAt": "2007-12-03T10:15:30Z",
      "hikes": [Hike]
    }
  }
}

likeHike

Response

Returns a Hike!

Arguments
Name Description
id - String!

Example

Query
mutation likeHike($id: String!) {
  likeHike(id: $id) {
    id
    name
    distance
    elevation
    description
    difficulty
    duration
    track
    latitude
    longitude
    createdAt
    reviewsAggregate {
      ...HikeReviewsAggregateResponseFragment
    }
    alertsAggregate {
      ...HikeAlertsAggregateResponseFragment
    }
    owner {
      ...UserFragment
    }
    category {
      ...CategoryFragment
    }
    tags {
      ...TagFragment
    }
    photos {
      ...PhotoFragment
    }
    pointsOfInterests {
      ...PointOfInterestFragment
    }
    reviews {
      ...ReviewFragment
    }
    alerts {
      ...AlertFragment
    }
    performances {
      ...PerformanceFragment
    }
    distanceFrom
    isLiked
  }
}
Variables
{"id": "abc123"}
Response
{
  "data": {
    "likeHike": {
      "id": 4,
      "name": "abc123",
      "distance": 987.65,
      "elevation": 987.65,
      "description": "abc123",
      "difficulty": "EASY",
      "duration": 123.45,
      "track": "xyz789",
      "latitude": 987.65,
      "longitude": 987.65,
      "createdAt": "2007-12-03T10:15:30Z",
      "reviewsAggregate": [HikeReviewsAggregateResponse],
      "alertsAggregate": [HikeAlertsAggregateResponse],
      "owner": User,
      "category": Category,
      "tags": [Tag],
      "photos": [Photo],
      "pointsOfInterests": [PointOfInterest],
      "reviews": [Review],
      "alerts": [Alert],
      "performances": [Performance],
      "distanceFrom": 987.65,
      "isLiked": false
    }
  }
}

postAlert

Response

Returns an Alert!

Arguments
Name Description
input - AlertInput!

Example

Query
mutation postAlert($input: AlertInput!) {
  postAlert(input: $input) {
    id
    latitude
    longitude
    type
    createdAt
    hike {
      ...HikeFragment
    }
    author {
      ...UserFragment
    }
  }
}
Variables
{"input": AlertInput}
Response
{
  "data": {
    "postAlert": {
      "id": 4,
      "latitude": 123.45,
      "longitude": 987.65,
      "type": "TRACK_CHANGE",
      "createdAt": "2007-12-03T10:15:30Z",
      "hike": Hike,
      "author": User
    }
  }
}

removeFriend

Response

Returns a User!

Arguments
Name Description
id - String!

Example

Query
mutation removeFriend($id: String!) {
  removeFriend(id: $id) {
    id
    pseudo
    email
    password
    publicKey
    credidential
    public
    createdAt
    friendsAggregate {
      ...UserFriendsAggregateResponseFragment
    }
    performancesAggregate {
      ...UserPerformancesAggregateResponseFragment
    }
    reviewsAggregate {
      ...UserReviewsAggregateResponseFragment
    }
    likesAggregate {
      ...UserLikesAggregateResponseFragment
    }
    tablesAggregate {
      ...UserTablesAggregateResponseFragment
    }
    avatar {
      ...PhotoFragment
    }
    friends {
      ...UserFragment
    }
    performances {
      ...PerformanceFragment
    }
    reviews {
      ...ReviewFragment
    }
    likes {
      ...UserLikesConnectionFragment
    }
    tables {
      ...TableFragment
    }
    isFriend
  }
}
Variables
{"id": "xyz789"}
Response
{
  "data": {
    "removeFriend": {
      "id": 4,
      "pseudo": "xyz789",
      "email": "abc123",
      "password": "abc123",
      "publicKey": "abc123",
      "credidential": 123.45,
      "public": true,
      "createdAt": "2007-12-03T10:15:30Z",
      "friendsAggregate": [UserFriendsAggregateResponse],
      "performancesAggregate": [
        UserPerformancesAggregateResponse
      ],
      "reviewsAggregate": [UserReviewsAggregateResponse],
      "likesAggregate": [UserLikesAggregateResponse],
      "tablesAggregate": [UserTablesAggregateResponse],
      "avatar": Photo,
      "friends": [User],
      "performances": [Performance],
      "reviews": [Review],
      "likes": UserLikesConnection,
      "tables": [Table],
      "isFriend": true
    }
  }
}

removeHikesFromTable

Response

Returns a Table!

Arguments
Name Description
input - RemoveHikesFromTableInput!

Example

Query
mutation removeHikesFromTable($input: RemoveHikesFromTableInput!) {
  removeHikesFromTable(input: $input) {
    id
    name
    createdAt
    hikes {
      ...HikeFragment
    }
    owner {
      ...UserFragment
    }
  }
}
Variables
{"input": RemoveHikesFromTableInput}
Response
{
  "data": {
    "removeHikesFromTable": {
      "id": "4",
      "name": "xyz789",
      "createdAt": "2007-12-03T10:15:30Z",
      "hikes": Hike,
      "owner": User
    }
  }
}

removeTagFromHike

Response

Returns a Hike!

Arguments
Name Description
hikeId - String!
tagId - String!

Example

Query
mutation removeTagFromHike(
  $hikeId: String!,
  $tagId: String!
) {
  removeTagFromHike(
    hikeId: $hikeId,
    tagId: $tagId
  ) {
    id
    name
    distance
    elevation
    description
    difficulty
    duration
    track
    latitude
    longitude
    createdAt
    reviewsAggregate {
      ...HikeReviewsAggregateResponseFragment
    }
    alertsAggregate {
      ...HikeAlertsAggregateResponseFragment
    }
    owner {
      ...UserFragment
    }
    category {
      ...CategoryFragment
    }
    tags {
      ...TagFragment
    }
    photos {
      ...PhotoFragment
    }
    pointsOfInterests {
      ...PointOfInterestFragment
    }
    reviews {
      ...ReviewFragment
    }
    alerts {
      ...AlertFragment
    }
    performances {
      ...PerformanceFragment
    }
    distanceFrom
    isLiked
  }
}
Variables
{
  "hikeId": "xyz789",
  "tagId": "xyz789"
}
Response
{
  "data": {
    "removeTagFromHike": {
      "id": 4,
      "name": "xyz789",
      "distance": 987.65,
      "elevation": 987.65,
      "description": "xyz789",
      "difficulty": "EASY",
      "duration": 123.45,
      "track": "abc123",
      "latitude": 123.45,
      "longitude": 987.65,
      "createdAt": "2007-12-03T10:15:30Z",
      "reviewsAggregate": [HikeReviewsAggregateResponse],
      "alertsAggregate": [HikeAlertsAggregateResponse],
      "owner": User,
      "category": Category,
      "tags": [Tag],
      "photos": [Photo],
      "pointsOfInterests": [PointOfInterest],
      "reviews": [Review],
      "alerts": [Alert],
      "performances": [Performance],
      "distanceFrom": 123.45,
      "isLiked": true
    }
  }
}

setHikesOnTable

Response

Returns a Table!

Arguments
Name Description
input - SetHikesOnTableInput!

Example

Query
mutation setHikesOnTable($input: SetHikesOnTableInput!) {
  setHikesOnTable(input: $input) {
    id
    name
    createdAt
    hikes {
      ...HikeFragment
    }
    owner {
      ...UserFragment
    }
  }
}
Variables
{"input": SetHikesOnTableInput}
Response
{
  "data": {
    "setHikesOnTable": {
      "id": 4,
      "name": "xyz789",
      "createdAt": "2007-12-03T10:15:30Z",
      "hikes": Hike,
      "owner": User
    }
  }
}

unlikeHike

Response

Returns a Hike!

Arguments
Name Description
id - String!

Example

Query
mutation unlikeHike($id: String!) {
  unlikeHike(id: $id) {
    id
    name
    distance
    elevation
    description
    difficulty
    duration
    track
    latitude
    longitude
    createdAt
    reviewsAggregate {
      ...HikeReviewsAggregateResponseFragment
    }
    alertsAggregate {
      ...HikeAlertsAggregateResponseFragment
    }
    owner {
      ...UserFragment
    }
    category {
      ...CategoryFragment
    }
    tags {
      ...TagFragment
    }
    photos {
      ...PhotoFragment
    }
    pointsOfInterests {
      ...PointOfInterestFragment
    }
    reviews {
      ...ReviewFragment
    }
    alerts {
      ...AlertFragment
    }
    performances {
      ...PerformanceFragment
    }
    distanceFrom
    isLiked
  }
}
Variables
{"id": "abc123"}
Response
{
  "data": {
    "unlikeHike": {
      "id": 4,
      "name": "xyz789",
      "distance": 123.45,
      "elevation": 987.65,
      "description": "abc123",
      "difficulty": "EASY",
      "duration": 987.65,
      "track": "abc123",
      "latitude": 987.65,
      "longitude": 123.45,
      "createdAt": "2007-12-03T10:15:30Z",
      "reviewsAggregate": [HikeReviewsAggregateResponse],
      "alertsAggregate": [HikeAlertsAggregateResponse],
      "owner": User,
      "category": Category,
      "tags": [Tag],
      "photos": [Photo],
      "pointsOfInterests": [PointOfInterest],
      "reviews": [Review],
      "alerts": [Alert],
      "performances": [Performance],
      "distanceFrom": 123.45,
      "isLiked": true
    }
  }
}

updateReview

Response

Returns a Review!

Arguments
Name Description
id - String!
input - ReviewInput!

Example

Query
mutation updateReview(
  $id: String!,
  $input: ReviewInput!
) {
  updateReview(
    id: $id,
    input: $input
  ) {
    id
    rating
    createdAt
    user {
      ...UserFragment
    }
    hike {
      ...HikeFragment
    }
  }
}
Variables
{
  "id": "abc123",
  "input": ReviewInput
}
Response
{
  "data": {
    "updateReview": {
      "id": 4,
      "rating": 123.45,
      "createdAt": "2007-12-03T10:15:30Z",
      "user": User,
      "hike": Hike
    }
  }
}

updateUser

Response

Returns a User!

Arguments
Name Description
id - String!
input - UserUpdateInput!

Example

Query
mutation updateUser(
  $id: String!,
  $input: UserUpdateInput!
) {
  updateUser(
    id: $id,
    input: $input
  ) {
    id
    pseudo
    email
    password
    publicKey
    credidential
    public
    createdAt
    friendsAggregate {
      ...UserFriendsAggregateResponseFragment
    }
    performancesAggregate {
      ...UserPerformancesAggregateResponseFragment
    }
    reviewsAggregate {
      ...UserReviewsAggregateResponseFragment
    }
    likesAggregate {
      ...UserLikesAggregateResponseFragment
    }
    tablesAggregate {
      ...UserTablesAggregateResponseFragment
    }
    avatar {
      ...PhotoFragment
    }
    friends {
      ...UserFragment
    }
    performances {
      ...PerformanceFragment
    }
    reviews {
      ...ReviewFragment
    }
    likes {
      ...UserLikesConnectionFragment
    }
    tables {
      ...TableFragment
    }
    isFriend
  }
}
Variables
{
  "id": "abc123",
  "input": UserUpdateInput
}
Response
{
  "data": {
    "updateUser": {
      "id": 4,
      "pseudo": "abc123",
      "email": "abc123",
      "password": "xyz789",
      "publicKey": "abc123",
      "credidential": 987.65,
      "public": true,
      "createdAt": "2007-12-03T10:15:30Z",
      "friendsAggregate": [UserFriendsAggregateResponse],
      "performancesAggregate": [
        UserPerformancesAggregateResponse
      ],
      "reviewsAggregate": [UserReviewsAggregateResponse],
      "likesAggregate": [UserLikesAggregateResponse],
      "tablesAggregate": [UserTablesAggregateResponse],
      "avatar": Photo,
      "friends": [User],
      "performances": [Performance],
      "reviews": [Review],
      "likes": UserLikesConnection,
      "tables": [Table],
      "isFriend": false
    }
  }
}

Types

Alert

Fields
Field Name Description
id - ID!
latitude - Float!
longitude - Float!
type - AlertType!
createdAt - DateTime!
hike - Hike!
author - User!
Example
{
  "id": "4",
  "latitude": 987.65,
  "longitude": 987.65,
  "type": "TRACK_CHANGE",
  "createdAt": "2007-12-03T10:15:30Z",
  "hike": Hike,
  "author": User
}

AlertAggregateFilter

Example
{
  "and": [AlertAggregateFilter],
  "or": [AlertAggregateFilter],
  "id": IDFilterComparison,
  "latitude": NumberFieldComparison,
  "longitude": NumberFieldComparison,
  "type": AlertTypeFilterComparison,
  "createdAt": DateFieldComparison
}

AlertFilter

Example
{
  "and": [AlertFilter],
  "or": [AlertFilter],
  "id": IDFilterComparison,
  "latitude": NumberFieldComparison,
  "longitude": NumberFieldComparison,
  "type": AlertTypeFilterComparison,
  "createdAt": DateFieldComparison,
  "author": AlertFilterUserFilter,
  "hike": AlertFilterHikeFilter
}

AlertFilterHikeFilter

Example
{
  "and": [AlertFilterHikeFilter],
  "or": [AlertFilterHikeFilter],
  "id": IDFilterComparison,
  "name": StringFieldComparison,
  "distance": NumberFieldComparison,
  "elevation": NumberFieldComparison,
  "difficulty": DifficultyFilterComparison,
  "duration": NumberFieldComparison,
  "latitude": NumberFieldComparison,
  "longitude": NumberFieldComparison,
  "createdAt": DateFieldComparison
}

AlertFilterUserFilter

Example
{
  "and": [AlertFilterUserFilter],
  "or": [AlertFilterUserFilter],
  "id": IDFilterComparison,
  "pseudo": StringFieldComparison,
  "email": StringFieldComparison,
  "password": StringFieldComparison,
  "publicKey": StringFieldComparison,
  "credidential": NumberFieldComparison,
  "public": BooleanFieldComparison,
  "createdAt": DateFieldComparison
}

AlertInput

Fields
Input Field Description
latitude - Float!
longitude - Float!
type - AlertType!
hikeId - String!
Example
{
  "latitude": 123.45,
  "longitude": 987.65,
  "type": "TRACK_CHANGE",
  "hikeId": "abc123"
}

AlertSort

Fields
Input Field Description
field - AlertSortFields!
direction - SortDirection!
nulls - SortNulls
Example
{"field": "id", "direction": "ASC", "nulls": "NULLS_FIRST"}

AlertSortFields

Values
Enum Value Description

id

latitude

longitude

type

createdAt

Example
"id"

AlertType

Values
Enum Value Description

TRACK_CHANGE

BLOCKED_PATH

DANGER

ANIMAL

SLIPPERY_PATH

DANGEROUS_ROAD

FLOOD

Example
"TRACK_CHANGE"

AlertTypeFilterComparison

Fields
Input Field Description
is - Boolean
isNot - Boolean
eq - AlertType
neq - AlertType
gt - AlertType
gte - AlertType
lt - AlertType
lte - AlertType
like - AlertType
notLike - AlertType
iLike - AlertType
notILike - AlertType
in - [AlertType!]
notIn - [AlertType!]
Example
{
  "is": true,
  "isNot": false,
  "eq": "TRACK_CHANGE",
  "neq": "TRACK_CHANGE",
  "gt": "TRACK_CHANGE",
  "gte": "TRACK_CHANGE",
  "lt": "TRACK_CHANGE",
  "lte": "TRACK_CHANGE",
  "like": "TRACK_CHANGE",
  "notLike": "TRACK_CHANGE",
  "iLike": "TRACK_CHANGE",
  "notILike": "TRACK_CHANGE",
  "in": ["TRACK_CHANGE"],
  "notIn": ["TRACK_CHANGE"]
}

Boolean

Description

The Boolean scalar type represents true or false.

Example
true

BooleanFieldComparison

Fields
Input Field Description
is - Boolean
isNot - Boolean
Example
{"is": false, "isNot": false}

Category

Fields
Field Name Description
id - ID!
name - String!
createdAt - DateTime!
hikes - Hike
defaultPhoto - Photo
Example
{
  "id": "4",
  "name": "xyz789",
  "createdAt": "2007-12-03T10:15:30Z",
  "hikes": Hike,
  "defaultPhoto": Photo
}

CategoryFilter

Fields
Input Field Description
and - [CategoryFilter!]
or - [CategoryFilter!]
id - IDFilterComparison
name - StringFieldComparison
createdAt - DateFieldComparison
Example
{
  "and": [CategoryFilter],
  "or": [CategoryFilter],
  "id": IDFilterComparison,
  "name": StringFieldComparison,
  "createdAt": DateFieldComparison
}

CategoryInput

Fields
Input Field Description
name - String!
Example
{"name": "abc123"}

CategorySort

Fields
Input Field Description
field - CategorySortFields!
direction - SortDirection!
nulls - SortNulls
Example
{"field": "id", "direction": "ASC", "nulls": "NULLS_FIRST"}

CategorySortFields

Values
Enum Value Description

id

name

createdAt

Example
"id"

ConnectionCursor

Description

Cursor for paging through collections

Example
ConnectionCursor

CursorPaging

Fields
Input Field Description
before - ConnectionCursor Paginate before opaque cursor
after - ConnectionCursor Paginate after opaque cursor
first - Int Paginate first
last - Int Paginate last
Example
{
  "before": ConnectionCursor,
  "after": ConnectionCursor,
  "first": 123,
  "last": 987
}

CustomHikeConnection

Fields
Field Name Description
pageInfo - CustomPageInfo!
edges - [CustomHikeEdge!]!
totalCount - Float!
Example
{
  "pageInfo": CustomPageInfo,
  "edges": [CustomHikeEdge],
  "totalCount": 123.45
}

CustomHikeEdge

Fields
Field Name Description
cursor - String!
node - Hike!
Example
{
  "cursor": "abc123",
  "node": Hike
}

CustomPageInfo

Fields
Field Name Description
hasNextPage - Boolean!
hasPreviousPage - Boolean!
startCursor - String!
endCursor - String!
Example
{
  "hasNextPage": false,
  "hasPreviousPage": true,
  "startCursor": "abc123",
  "endCursor": "abc123"
}

DateFieldComparison

Fields
Input Field Description
is - Boolean
isNot - Boolean
eq - DateTime
neq - DateTime
gt - DateTime
gte - DateTime
lt - DateTime
lte - DateTime
in - [DateTime!]
notIn - [DateTime!]
between - DateFieldComparisonBetween
notBetween - DateFieldComparisonBetween
Example
{
  "is": false,
  "isNot": false,
  "eq": "2007-12-03T10:15:30Z",
  "neq": "2007-12-03T10:15:30Z",
  "gt": "2007-12-03T10:15:30Z",
  "gte": "2007-12-03T10:15:30Z",
  "lt": "2007-12-03T10:15:30Z",
  "lte": "2007-12-03T10:15:30Z",
  "in": ["2007-12-03T10:15:30Z"],
  "notIn": ["2007-12-03T10:15:30Z"],
  "between": DateFieldComparisonBetween,
  "notBetween": DateFieldComparisonBetween
}

DateFieldComparisonBetween

Fields
Input Field Description
lower - DateTime!
upper - DateTime!
Example
{
  "lower": "2007-12-03T10:15:30Z",
  "upper": "2007-12-03T10:15:30Z"
}

DateTime

Description

A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.

Example
"2007-12-03T10:15:30Z"

Difficulty

Values
Enum Value Description

EASY

MEDIUM

HARD

Example
"EASY"

DifficultyFilterComparison

Fields
Input Field Description
is - Boolean
isNot - Boolean
eq - Difficulty
neq - Difficulty
gt - Difficulty
gte - Difficulty
lt - Difficulty
lte - Difficulty
like - Difficulty
notLike - Difficulty
iLike - Difficulty
notILike - Difficulty
in - [Difficulty!]
notIn - [Difficulty!]
Example
{
  "is": true,
  "isNot": true,
  "eq": "EASY",
  "neq": "EASY",
  "gt": "EASY",
  "gte": "EASY",
  "lt": "EASY",
  "lte": "EASY",
  "like": "EASY",
  "notLike": "EASY",
  "iLike": "EASY",
  "notILike": "EASY",
  "in": ["EASY"],
  "notIn": ["EASY"]
}

Float

Description

The Float scalar type represents signed double-precision fractional values as specified by IEEE 754.

Example
123.45

Hike

Fields
Field Name Description
id - ID!
name - String!
distance - Float!
elevation - Float!
description - String!
difficulty - Difficulty!
duration - Float
track - String!
latitude - Float!
longitude - Float!
createdAt - DateTime!
reviewsAggregate - [HikeReviewsAggregateResponse!]!
Arguments
filter - ReviewAggregateFilter

Filter to find records to aggregate on

alertsAggregate - [HikeAlertsAggregateResponse!]!
Arguments
filter - AlertAggregateFilter

Filter to find records to aggregate on

owner - User!
category - Category
tags - [Tag!]
Arguments
filter - TagFilter

Specify to filter the records returned.

sorting - [TagSort!]

Specify to sort results.

photos - [Photo!]
Arguments
filter - PhotoFilter

Specify to filter the records returned.

sorting - [PhotoSort!]

Specify to sort results.

pointsOfInterests - [PointOfInterest!]
Arguments
filter - PointOfInterestFilter

Specify to filter the records returned.

sorting - [PointOfInterestSort!]

Specify to sort results.

reviews - [Review!]
Arguments
filter - ReviewFilter

Specify to filter the records returned.

sorting - [ReviewSort!]

Specify to sort results.

alerts - [Alert!]
Arguments
filter - AlertFilter

Specify to filter the records returned.

sorting - [AlertSort!]

Specify to sort results.

performances - [Performance!]
Arguments
filter - PerformanceFilter

Specify to filter the records returned.

sorting - [PerformanceSort!]

Specify to sort results.

distanceFrom - Float!
Arguments
lat - Float!
lon - Float!
isLiked - Boolean!
Example
{
  "id": "4",
  "name": "xyz789",
  "distance": 123.45,
  "elevation": 123.45,
  "description": "xyz789",
  "difficulty": "EASY",
  "duration": 123.45,
  "track": "xyz789",
  "latitude": 987.65,
  "longitude": 987.65,
  "createdAt": "2007-12-03T10:15:30Z",
  "reviewsAggregate": [HikeReviewsAggregateResponse],
  "alertsAggregate": [HikeAlertsAggregateResponse],
  "owner": User,
  "category": Category,
  "tags": [Tag],
  "photos": [Photo],
  "pointsOfInterests": [PointOfInterest],
  "reviews": [Review],
  "alerts": [Alert],
  "performances": [Performance],
  "distanceFrom": 123.45,
  "isLiked": true
}

HikeAggregateFilter

Example
{
  "and": [HikeAggregateFilter],
  "or": [HikeAggregateFilter],
  "id": IDFilterComparison,
  "name": StringFieldComparison,
  "distance": NumberFieldComparison,
  "elevation": NumberFieldComparison,
  "difficulty": DifficultyFilterComparison,
  "duration": NumberFieldComparison,
  "latitude": NumberFieldComparison,
  "longitude": NumberFieldComparison,
  "createdAt": DateFieldComparison
}

HikeAggregateGroupBy

Fields
Field Name Description
id - ID
name - String
distance - Float
elevation - Float
difficulty - Difficulty
duration - Float
latitude - Float
longitude - Float
createdAt - DateTime
Example
{
  "id": "4",
  "name": "abc123",
  "distance": 987.65,
  "elevation": 123.45,
  "difficulty": "EASY",
  "duration": 123.45,
  "latitude": 123.45,
  "longitude": 987.65,
  "createdAt": "2007-12-03T10:15:30Z"
}

HikeAggregateResponse

Fields
Field Name Description
groupBy - HikeAggregateGroupBy
count - HikeCountAggregate
sum - HikeSumAggregate
avg - HikeAvgAggregate
min - HikeMinAggregate
max - HikeMaxAggregate
Example
{
  "groupBy": HikeAggregateGroupBy,
  "count": HikeCountAggregate,
  "sum": HikeSumAggregate,
  "avg": HikeAvgAggregate,
  "min": HikeMinAggregate,
  "max": HikeMaxAggregate
}

HikeAlertsAggregateGroupBy

Fields
Field Name Description
id - ID
latitude - Float
longitude - Float
type - AlertType
createdAt - DateTime
Example
{
  "id": 4,
  "latitude": 123.45,
  "longitude": 987.65,
  "type": "TRACK_CHANGE",
  "createdAt": "2007-12-03T10:15:30Z"
}

HikeAlertsAggregateResponse

Example
{
  "groupBy": HikeAlertsAggregateGroupBy,
  "count": HikeAlertsCountAggregate,
  "sum": HikeAlertsSumAggregate,
  "avg": HikeAlertsAvgAggregate,
  "min": HikeAlertsMinAggregate,
  "max": HikeAlertsMaxAggregate
}

HikeAlertsAvgAggregate

Fields
Field Name Description
latitude - Float
longitude - Float
type - Float
Example
{"latitude": 987.65, "longitude": 987.65, "type": 123.45}

HikeAlertsCountAggregate

Fields
Field Name Description
id - Int
latitude - Int
longitude - Int
type - Int
createdAt - Int
Example
{"id": 123, "latitude": 987, "longitude": 987, "type": 987, "createdAt": 987}

HikeAlertsMaxAggregate

Fields
Field Name Description
id - ID
latitude - Float
longitude - Float
type - AlertType
createdAt - DateTime
Example
{
  "id": 4,
  "latitude": 123.45,
  "longitude": 987.65,
  "type": "TRACK_CHANGE",
  "createdAt": "2007-12-03T10:15:30Z"
}

HikeAlertsMinAggregate

Fields
Field Name Description
id - ID
latitude - Float
longitude - Float
type - AlertType
createdAt - DateTime
Example
{
  "id": 4,
  "latitude": 987.65,
  "longitude": 123.45,
  "type": "TRACK_CHANGE",
  "createdAt": "2007-12-03T10:15:30Z"
}

HikeAlertsSumAggregate

Fields
Field Name Description
latitude - Float
longitude - Float
type - Float
Example
{"latitude": 987.65, "longitude": 123.45, "type": 123.45}

HikeAvgAggregate

Fields
Field Name Description
distance - Float
elevation - Float
duration - Float
latitude - Float
longitude - Float
Example
{
  "distance": 123.45,
  "elevation": 123.45,
  "duration": 123.45,
  "latitude": 987.65,
  "longitude": 987.65
}

HikeConnection

Fields
Field Name Description
pageInfo - PageInfo! Paging information
edges - [HikeEdge!]! Array of edges.
totalCount - Int! Fetch total count of records
Example
{
  "pageInfo": PageInfo,
  "edges": [HikeEdge],
  "totalCount": 987
}

HikeCountAggregate

Fields
Field Name Description
id - Int
name - Int
distance - Int
elevation - Int
difficulty - Int
duration - Int
latitude - Int
longitude - Int
createdAt - Int
Example
{
  "id": 987,
  "name": 123,
  "distance": 987,
  "elevation": 123,
  "difficulty": 123,
  "duration": 987,
  "latitude": 987,
  "longitude": 123,
  "createdAt": 123
}

HikeEdge

Fields
Field Name Description
node - Hike! The node containing the Hike
cursor - ConnectionCursor! Cursor for this node.
Example
{
  "node": Hike,
  "cursor": ConnectionCursor
}

HikeFilter

Example
{
  "and": [HikeFilter],
  "or": [HikeFilter],
  "id": IDFilterComparison,
  "name": StringFieldComparison,
  "distance": NumberFieldComparison,
  "elevation": NumberFieldComparison,
  "difficulty": DifficultyFilterComparison,
  "duration": NumberFieldComparison,
  "latitude": NumberFieldComparison,
  "longitude": NumberFieldComparison,
  "createdAt": DateFieldComparison,
  "category": HikeFilterCategoryFilter,
  "performances": HikeFilterPerformanceFilter,
  "alerts": HikeFilterAlertFilter,
  "reviews": HikeFilterReviewFilter,
  "pointsOfInterest": HikeFilterPointOfInterestFilter,
  "tags": HikeFilterTagFilter
}

HikeFilterAlertFilter

Example
{
  "and": [HikeFilterAlertFilter],
  "or": [HikeFilterAlertFilter],
  "id": IDFilterComparison,
  "latitude": NumberFieldComparison,
  "longitude": NumberFieldComparison,
  "type": AlertTypeFilterComparison,
  "createdAt": DateFieldComparison
}

HikeFilterCategoryFilter

Example
{
  "and": [HikeFilterCategoryFilter],
  "or": [HikeFilterCategoryFilter],
  "id": IDFilterComparison,
  "name": StringFieldComparison,
  "createdAt": DateFieldComparison
}

HikeFilterPerformanceFilter

Example
{
  "and": [HikeFilterPerformanceFilter],
  "or": [HikeFilterPerformanceFilter],
  "id": IDFilterComparison,
  "date": DateFieldComparison,
  "distance": NumberFieldComparison,
  "elevation": NumberFieldComparison,
  "duration": NumberFieldComparison,
  "createdAt": DateFieldComparison
}

HikeFilterPointOfInterestFilter

Example
{
  "and": [HikeFilterPointOfInterestFilter],
  "or": [HikeFilterPointOfInterestFilter],
  "id": IDFilterComparison,
  "name": StringFieldComparison,
  "latitude": NumberFieldComparison,
  "longitude": NumberFieldComparison,
  "createdAt": DateFieldComparison
}

HikeFilterReviewFilter

Fields
Input Field Description
and - [HikeFilterReviewFilter!]
or - [HikeFilterReviewFilter!]
id - IDFilterComparison
rating - NumberFieldComparison
createdAt - DateFieldComparison
Example
{
  "and": [HikeFilterReviewFilter],
  "or": [HikeFilterReviewFilter],
  "id": IDFilterComparison,
  "rating": NumberFieldComparison,
  "createdAt": DateFieldComparison
}

HikeFilterTagFilter

Fields
Input Field Description
and - [HikeFilterTagFilter!]
or - [HikeFilterTagFilter!]
id - IDFilterComparison
name - StringFieldComparison
createdAt - DateFieldComparison
Example
{
  "and": [HikeFilterTagFilter],
  "or": [HikeFilterTagFilter],
  "id": IDFilterComparison,
  "name": StringFieldComparison,
  "createdAt": DateFieldComparison
}

HikeInput

Fields
Input Field Description
name - String!
distance - Float!
elevation - Float!
description - String!
difficulty - Difficulty!
track - Upload!
latitude - Float!
longitude - Float!
tagsId - [String!]!
categoryId - String!
Example
{
  "name": "xyz789",
  "distance": 123.45,
  "elevation": 123.45,
  "description": "xyz789",
  "difficulty": "EASY",
  "track": Upload,
  "latitude": 123.45,
  "longitude": 987.65,
  "tagsId": ["xyz789"],
  "categoryId": "xyz789"
}

HikeMaxAggregate

Fields
Field Name Description
id - ID
name - String
distance - Float
elevation - Float
difficulty - Difficulty
duration - Float
latitude - Float
longitude - Float
createdAt - DateTime
Example
{
  "id": "4",
  "name": "xyz789",
  "distance": 123.45,
  "elevation": 123.45,
  "difficulty": "EASY",
  "duration": 987.65,
  "latitude": 987.65,
  "longitude": 123.45,
  "createdAt": "2007-12-03T10:15:30Z"
}

HikeMinAggregate

Fields
Field Name Description
id - ID
name - String
distance - Float
elevation - Float
difficulty - Difficulty
duration - Float
latitude - Float
longitude - Float
createdAt - DateTime
Example
{
  "id": 4,
  "name": "xyz789",
  "distance": 987.65,
  "elevation": 987.65,
  "difficulty": "EASY",
  "duration": 987.65,
  "latitude": 987.65,
  "longitude": 123.45,
  "createdAt": "2007-12-03T10:15:30Z"
}

HikeReviewsAggregateGroupBy

Fields
Field Name Description
id - ID
rating - Float
createdAt - DateTime
Example
{
  "id": 4,
  "rating": 123.45,
  "createdAt": "2007-12-03T10:15:30Z"
}

HikeReviewsAggregateResponse

Example
{
  "groupBy": HikeReviewsAggregateGroupBy,
  "count": HikeReviewsCountAggregate,
  "sum": HikeReviewsSumAggregate,
  "avg": HikeReviewsAvgAggregate,
  "min": HikeReviewsMinAggregate,
  "max": HikeReviewsMaxAggregate
}

HikeReviewsAvgAggregate

Fields
Field Name Description
rating - Float
Example
{"rating": 987.65}

HikeReviewsCountAggregate

Fields
Field Name Description
id - Int
rating - Int
createdAt - Int
Example
{"id": 987, "rating": 987, "createdAt": 987}

HikeReviewsMaxAggregate

Fields
Field Name Description
id - ID
rating - Float
createdAt - DateTime
Example
{
  "id": 4,
  "rating": 123.45,
  "createdAt": "2007-12-03T10:15:30Z"
}

HikeReviewsMinAggregate

Fields
Field Name Description
id - ID
rating - Float
createdAt - DateTime
Example
{
  "id": "4",
  "rating": 123.45,
  "createdAt": "2007-12-03T10:15:30Z"
}

HikeReviewsSumAggregate

Fields
Field Name Description
rating - Float
Example
{"rating": 987.65}

HikeSort

Fields
Input Field Description
field - HikeSortFields!
direction - SortDirection!
nulls - SortNulls
Example
{"field": "id", "direction": "ASC", "nulls": "NULLS_FIRST"}

HikeSortFields

Values
Enum Value Description

id

name

distance

elevation

difficulty

duration

latitude

longitude

createdAt

Example
"id"

HikeSumAggregate

Fields
Field Name Description
distance - Float
elevation - Float
duration - Float
latitude - Float
longitude - Float
Example
{
  "distance": 987.65,
  "elevation": 123.45,
  "duration": 987.65,
  "latitude": 987.65,
  "longitude": 123.45
}

ID

Description

The ID scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as "4") or integer (such as 4) input value will be accepted as an ID.

Example
"4"

IDFilterComparison

Fields
Input Field Description
is - Boolean
isNot - Boolean
eq - ID
neq - ID
gt - ID
gte - ID
lt - ID
lte - ID
like - ID
notLike - ID
iLike - ID
notILike - ID
in - [ID!]
notIn - [ID!]
Example
{
  "is": false,
  "isNot": true,
  "eq": 4,
  "neq": "4",
  "gt": "4",
  "gte": 4,
  "lt": "4",
  "lte": "4",
  "like": 4,
  "notLike": "4",
  "iLike": "4",
  "notILike": "4",
  "in": ["4"],
  "notIn": ["4"]
}

Int

Description

The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.

Example
987

NumberFieldComparison

Fields
Input Field Description
is - Boolean
isNot - Boolean
eq - Float
neq - Float
gt - Float
gte - Float
lt - Float
lte - Float
in - [Float!]
notIn - [Float!]
between - NumberFieldComparisonBetween
notBetween - NumberFieldComparisonBetween
Example
{
  "is": false,
  "isNot": false,
  "eq": 987.65,
  "neq": 123.45,
  "gt": 987.65,
  "gte": 123.45,
  "lt": 987.65,
  "lte": 123.45,
  "in": [123.45],
  "notIn": [123.45],
  "between": NumberFieldComparisonBetween,
  "notBetween": NumberFieldComparisonBetween
}

NumberFieldComparisonBetween

Fields
Input Field Description
lower - Float!
upper - Float!
Example
{"lower": 987.65, "upper": 987.65}

ObjType

Values
Enum Value Description

HIKE

USER

CATEGORY

POINTOFINTEREST

Example
"HIKE"

PageInfo

Fields
Field Name Description
hasNextPage - Boolean true if paging forward and there are more records.
hasPreviousPage - Boolean true if paging backwards and there are more records.
startCursor - ConnectionCursor The cursor of the first returned record.
endCursor - ConnectionCursor The cursor of the last returned record.
Example
{
  "hasNextPage": true,
  "hasPreviousPage": false,
  "startCursor": ConnectionCursor,
  "endCursor": ConnectionCursor
}

Performance

Fields
Field Name Description
id - ID!
date - DateTime!
distance - Float!
elevation - Float!
duration - Float!
track - String!
createdAt - DateTime!
user - User!
hike - Hike!
Example
{
  "id": "4",
  "date": "2007-12-03T10:15:30Z",
  "distance": 123.45,
  "elevation": 987.65,
  "duration": 123.45,
  "track": "xyz789",
  "createdAt": "2007-12-03T10:15:30Z",
  "user": User,
  "hike": Hike
}

PerformanceAggregateFilter

Example
{
  "and": [PerformanceAggregateFilter],
  "or": [PerformanceAggregateFilter],
  "id": IDFilterComparison,
  "date": DateFieldComparison,
  "distance": NumberFieldComparison,
  "elevation": NumberFieldComparison,
  "duration": NumberFieldComparison,
  "createdAt": DateFieldComparison
}

PerformanceAggregateGroupBy

Fields
Field Name Description
id - ID
date - DateTime
distance - Float
elevation - Float
duration - Float
createdAt - DateTime
Example
{
  "id": 4,
  "date": "2007-12-03T10:15:30Z",
  "distance": 123.45,
  "elevation": 987.65,
  "duration": 987.65,
  "createdAt": "2007-12-03T10:15:30Z"
}

PerformanceAggregateResponse

Example
{
  "groupBy": PerformanceAggregateGroupBy,
  "count": PerformanceCountAggregate,
  "sum": PerformanceSumAggregate,
  "avg": PerformanceAvgAggregate,
  "min": PerformanceMinAggregate,
  "max": PerformanceMaxAggregate
}

PerformanceAvgAggregate

Fields
Field Name Description
distance - Float
elevation - Float
duration - Float
Example
{"distance": 987.65, "elevation": 987.65, "duration": 123.45}

PerformanceCountAggregate

Fields
Field Name Description
id - Int
date - Int
distance - Int
elevation - Int
duration - Int
createdAt - Int
Example
{
  "id": 123,
  "date": 123,
  "distance": 987,
  "elevation": 123,
  "duration": 987,
  "createdAt": 123
}

PerformanceFilter

Example
{
  "and": [PerformanceFilter],
  "or": [PerformanceFilter],
  "id": IDFilterComparison,
  "date": DateFieldComparison,
  "distance": NumberFieldComparison,
  "elevation": NumberFieldComparison,
  "duration": NumberFieldComparison,
  "createdAt": DateFieldComparison,
  "hike": PerformanceFilterHikeFilter,
  "user": PerformanceFilterUserFilter
}

PerformanceFilterHikeFilter

Example
{
  "and": [PerformanceFilterHikeFilter],
  "or": [PerformanceFilterHikeFilter],
  "id": IDFilterComparison,
  "name": StringFieldComparison,
  "distance": NumberFieldComparison,
  "elevation": NumberFieldComparison,
  "difficulty": DifficultyFilterComparison,
  "duration": NumberFieldComparison,
  "latitude": NumberFieldComparison,
  "longitude": NumberFieldComparison,
  "createdAt": DateFieldComparison
}

PerformanceFilterUserFilter

Example
{
  "and": [PerformanceFilterUserFilter],
  "or": [PerformanceFilterUserFilter],
  "id": IDFilterComparison,
  "pseudo": StringFieldComparison,
  "email": StringFieldComparison,
  "password": StringFieldComparison,
  "publicKey": StringFieldComparison,
  "credidential": NumberFieldComparison,
  "public": BooleanFieldComparison,
  "createdAt": DateFieldComparison
}

PerformanceInput

Fields
Input Field Description
date - DateTime!
duration - Float!
distance - Float!
elevation - Float!
file - Upload!
hikeId - String!
Example
{
  "date": "2007-12-03T10:15:30Z",
  "duration": 123.45,
  "distance": 123.45,
  "elevation": 123.45,
  "file": Upload,
  "hikeId": "xyz789"
}

PerformanceMaxAggregate

Fields
Field Name Description
id - ID
date - DateTime
distance - Float
elevation - Float
duration - Float
createdAt - DateTime
Example
{
  "id": 4,
  "date": "2007-12-03T10:15:30Z",
  "distance": 987.65,
  "elevation": 123.45,
  "duration": 987.65,
  "createdAt": "2007-12-03T10:15:30Z"
}

PerformanceMinAggregate

Fields
Field Name Description
id - ID
date - DateTime
distance - Float
elevation - Float
duration - Float
createdAt - DateTime
Example
{
  "id": "4",
  "date": "2007-12-03T10:15:30Z",
  "distance": 123.45,
  "elevation": 987.65,
  "duration": 123.45,
  "createdAt": "2007-12-03T10:15:30Z"
}

PerformanceSort

Fields
Input Field Description
field - PerformanceSortFields!
direction - SortDirection!
nulls - SortNulls
Example
{"field": "id", "direction": "ASC", "nulls": "NULLS_FIRST"}

PerformanceSortFields

Values
Enum Value Description

id

date

distance

elevation

duration

createdAt

Example
"id"

PerformanceSumAggregate

Fields
Field Name Description
distance - Float
elevation - Float
duration - Float
Example
{"distance": 987.65, "elevation": 987.65, "duration": 123.45}

Photo

Fields
Field Name Description
id - ID!
filename - String!
createdAt - DateTime!
Example
{
  "id": "4",
  "filename": "xyz789",
  "createdAt": "2007-12-03T10:15:30Z"
}

PhotoFilter

Fields
Input Field Description
and - [PhotoFilter!]
or - [PhotoFilter!]
id - IDFilterComparison
filename - StringFieldComparison
createdAt - DateFieldComparison
Example
{
  "and": [PhotoFilter],
  "or": [PhotoFilter],
  "id": IDFilterComparison,
  "filename": StringFieldComparison,
  "createdAt": DateFieldComparison
}

PhotoInput

Fields
Input Field Description
objId - String!
objType - ObjType!
file - Upload!
Example
{
  "objId": "xyz789",
  "objType": "HIKE",
  "file": Upload
}

PhotoSort

Fields
Input Field Description
field - PhotoSortFields!
direction - SortDirection!
nulls - SortNulls
Example
{"field": "id", "direction": "ASC", "nulls": "NULLS_FIRST"}

PhotoSortFields

Values
Enum Value Description

id

filename

createdAt

Example
"id"

PointOfInterest

Fields
Field Name Description
id - ID!
name - String!
description - String!
latitude - Float!
longitude - Float!
url - String
createdAt - DateTime!
photo - Photo
hikes - [Hike!]!
Arguments
filter - HikeFilter

Specify to filter the records returned.

sorting - [HikeSort!]

Specify to sort results.

Example
{
  "id": 4,
  "name": "xyz789",
  "description": "abc123",
  "latitude": 987.65,
  "longitude": 123.45,
  "url": "abc123",
  "createdAt": "2007-12-03T10:15:30Z",
  "photo": Photo,
  "hikes": [Hike]
}

PointOfInterestFilter

Example
{
  "and": [PointOfInterestFilter],
  "or": [PointOfInterestFilter],
  "id": IDFilterComparison,
  "name": StringFieldComparison,
  "latitude": NumberFieldComparison,
  "longitude": NumberFieldComparison,
  "createdAt": DateFieldComparison,
  "hikes": PointOfInterestFilterHikeFilter
}

PointOfInterestFilterHikeFilter

Example
{
  "and": [PointOfInterestFilterHikeFilter],
  "or": [PointOfInterestFilterHikeFilter],
  "id": IDFilterComparison,
  "name": StringFieldComparison,
  "distance": NumberFieldComparison,
  "elevation": NumberFieldComparison,
  "difficulty": DifficultyFilterComparison,
  "duration": NumberFieldComparison,
  "latitude": NumberFieldComparison,
  "longitude": NumberFieldComparison,
  "createdAt": DateFieldComparison
}

PointOfInterestInput

Fields
Input Field Description
name - String!
description - String!
latitude - Float!
longitude - Float!
url - String
Example
{
  "name": "xyz789",
  "description": "xyz789",
  "latitude": 987.65,
  "longitude": 987.65,
  "url": "xyz789"
}

PointOfInterestSort

Fields
Input Field Description
field - PointOfInterestSortFields!
direction - SortDirection!
nulls - SortNulls
Example
{"field": "id", "direction": "ASC", "nulls": "NULLS_FIRST"}

PointOfInterestSortFields

Values
Enum Value Description

id

name

latitude

longitude

createdAt

Example
"id"

RemoveHikesFromTableInput

Fields
Input Field Description
id - ID! The id of the record.
relationId - ID! The id of relation.
Example
{"id": 4, "relationId": "4"}

Review

Fields
Field Name Description
id - ID!
rating - Float!
createdAt - DateTime!
user - User!
hike - Hike!
Example
{
  "id": 4,
  "rating": 123.45,
  "createdAt": "2007-12-03T10:15:30Z",
  "user": User,
  "hike": Hike
}

ReviewAggregateFilter

Fields
Input Field Description
and - [ReviewAggregateFilter!]
or - [ReviewAggregateFilter!]
id - IDFilterComparison
rating - NumberFieldComparison
createdAt - DateFieldComparison
Example
{
  "and": [ReviewAggregateFilter],
  "or": [ReviewAggregateFilter],
  "id": IDFilterComparison,
  "rating": NumberFieldComparison,
  "createdAt": DateFieldComparison
}

ReviewAggregateGroupBy

Fields
Field Name Description
id - ID
rating - Float
createdAt - DateTime
Example
{
  "id": 4,
  "rating": 987.65,
  "createdAt": "2007-12-03T10:15:30Z"
}

ReviewAggregateResponse

Fields
Field Name Description
groupBy - ReviewAggregateGroupBy
count - ReviewCountAggregate
sum - ReviewSumAggregate
avg - ReviewAvgAggregate
min - ReviewMinAggregate
max - ReviewMaxAggregate
Example
{
  "groupBy": ReviewAggregateGroupBy,
  "count": ReviewCountAggregate,
  "sum": ReviewSumAggregate,
  "avg": ReviewAvgAggregate,
  "min": ReviewMinAggregate,
  "max": ReviewMaxAggregate
}

ReviewAvgAggregate

Fields
Field Name Description
rating - Float
Example
{"rating": 123.45}

ReviewCountAggregate

Fields
Field Name Description
id - Int
rating - Int
createdAt - Int
Example
{"id": 123, "rating": 987, "createdAt": 987}

ReviewFilter

Fields
Input Field Description
and - [ReviewFilter!]
or - [ReviewFilter!]
id - IDFilterComparison
rating - NumberFieldComparison
createdAt - DateFieldComparison
hike - ReviewFilterHikeFilter
user - ReviewFilterUserFilter
Example
{
  "and": [ReviewFilter],
  "or": [ReviewFilter],
  "id": IDFilterComparison,
  "rating": NumberFieldComparison,
  "createdAt": DateFieldComparison,
  "hike": ReviewFilterHikeFilter,
  "user": ReviewFilterUserFilter
}

ReviewFilterHikeFilter

Example
{
  "and": [ReviewFilterHikeFilter],
  "or": [ReviewFilterHikeFilter],
  "id": IDFilterComparison,
  "name": StringFieldComparison,
  "distance": NumberFieldComparison,
  "elevation": NumberFieldComparison,
  "difficulty": DifficultyFilterComparison,
  "duration": NumberFieldComparison,
  "latitude": NumberFieldComparison,
  "longitude": NumberFieldComparison,
  "createdAt": DateFieldComparison
}

ReviewFilterUserFilter

Example
{
  "and": [ReviewFilterUserFilter],
  "or": [ReviewFilterUserFilter],
  "id": IDFilterComparison,
  "pseudo": StringFieldComparison,
  "email": StringFieldComparison,
  "password": StringFieldComparison,
  "publicKey": StringFieldComparison,
  "credidential": NumberFieldComparison,
  "public": BooleanFieldComparison,
  "createdAt": DateFieldComparison
}

ReviewInput

Fields
Input Field Description
rating - Float!
hikeId - String!
Example
{"rating": 123.45, "hikeId": "xyz789"}

ReviewMaxAggregate

Fields
Field Name Description
id - ID
rating - Float
createdAt - DateTime
Example
{
  "id": 4,
  "rating": 123.45,
  "createdAt": "2007-12-03T10:15:30Z"
}

ReviewMinAggregate

Fields
Field Name Description
id - ID
rating - Float
createdAt - DateTime
Example
{
  "id": 4,
  "rating": 123.45,
  "createdAt": "2007-12-03T10:15:30Z"
}

ReviewSort

Fields
Input Field Description
field - ReviewSortFields!
direction - SortDirection!
nulls - SortNulls
Example
{"field": "id", "direction": "ASC", "nulls": "NULLS_FIRST"}

ReviewSortFields

Values
Enum Value Description

id

rating

createdAt

Example
"id"

ReviewSumAggregate

Fields
Field Name Description
rating - Float
Example
{"rating": 123.45}

SetHikesOnTableInput

Fields
Input Field Description
id - ID! The id of the record.
relationId - ID! The id of relation.
Example
{
  "id": "4",
  "relationId": "4"
}

SortDirection

Description

Sort Directions

Values
Enum Value Description

ASC

DESC

Example
"ASC"

SortNulls

Description

Sort Nulls Options

Values
Enum Value Description

NULLS_FIRST

NULLS_LAST

Example
"NULLS_FIRST"

String

Description

The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.

Example
"abc123"

StringFieldComparison

Fields
Input Field Description
is - Boolean
isNot - Boolean
eq - String
neq - String
gt - String
gte - String
lt - String
lte - String
like - String
notLike - String
iLike - String
notILike - String
in - [String!]
notIn - [String!]
Example
{
  "is": true,
  "isNot": false,
  "eq": "abc123",
  "neq": "abc123",
  "gt": "abc123",
  "gte": "abc123",
  "lt": "abc123",
  "lte": "xyz789",
  "like": "xyz789",
  "notLike": "xyz789",
  "iLike": "xyz789",
  "notILike": "xyz789",
  "in": ["xyz789"],
  "notIn": ["abc123"]
}

Table

Fields
Field Name Description
id - ID!
name - String!
createdAt - DateTime!
hikes - Hike
owner - User
Example
{
  "id": 4,
  "name": "xyz789",
  "createdAt": "2007-12-03T10:15:30Z",
  "hikes": Hike,
  "owner": User
}

TableAggregateFilter

Fields
Input Field Description
and - [TableAggregateFilter!]
or - [TableAggregateFilter!]
id - IDFilterComparison
name - StringFieldComparison
createdAt - DateFieldComparison
Example
{
  "and": [TableAggregateFilter],
  "or": [TableAggregateFilter],
  "id": IDFilterComparison,
  "name": StringFieldComparison,
  "createdAt": DateFieldComparison
}

TableFilter

Fields
Input Field Description
and - [TableFilter!]
or - [TableFilter!]
id - IDFilterComparison
name - StringFieldComparison
createdAt - DateFieldComparison
Example
{
  "and": [TableFilter],
  "or": [TableFilter],
  "id": IDFilterComparison,
  "name": StringFieldComparison,
  "createdAt": DateFieldComparison
}

TableInput

Fields
Input Field Description
name - String!
Example
{"name": "abc123"}

TableSort

Fields
Input Field Description
field - TableSortFields!
direction - SortDirection!
nulls - SortNulls
Example
{"field": "id", "direction": "ASC", "nulls": "NULLS_FIRST"}

TableSortFields

Values
Enum Value Description

id

name

createdAt

Example
"id"

Tag

Fields
Field Name Description
id - ID!
name - String!
createdAt - DateTime!
hikes - [Hike!]
Arguments
filter - HikeFilter

Specify to filter the records returned.

sorting - [HikeSort!]

Specify to sort results.

Example
{
  "id": "4",
  "name": "abc123",
  "createdAt": "2007-12-03T10:15:30Z",
  "hikes": [Hike]
}

TagFilter

Fields
Input Field Description
and - [TagFilter!]
or - [TagFilter!]
id - IDFilterComparison
name - StringFieldComparison
createdAt - DateFieldComparison
Example
{
  "and": [TagFilter],
  "or": [TagFilter],
  "id": IDFilterComparison,
  "name": StringFieldComparison,
  "createdAt": DateFieldComparison
}

TagInput

Fields
Input Field Description
name - String!
Example
{"name": "abc123"}

TagSort

Fields
Input Field Description
field - TagSortFields!
direction - SortDirection!
nulls - SortNulls
Example
{"field": "id", "direction": "ASC", "nulls": "NULLS_FIRST"}

TagSortFields

Values
Enum Value Description

id

name

createdAt

Example
"id"

Upload

Description

The Upload scalar type represents a file upload.

Example
Upload

User

Fields
Field Name Description
id - ID!
pseudo - String!
email - String!
password - String!
publicKey - String!
credidential - Float!
public - Boolean!
createdAt - DateTime!
friendsAggregate - [UserFriendsAggregateResponse!]!
Arguments
filter - UserAggregateFilter

Filter to find records to aggregate on

performancesAggregate - [UserPerformancesAggregateResponse!]!
Arguments
filter - PerformanceAggregateFilter

Filter to find records to aggregate on

reviewsAggregate - [UserReviewsAggregateResponse!]!
Arguments
filter - ReviewAggregateFilter

Filter to find records to aggregate on

likesAggregate - [UserLikesAggregateResponse!]!
Arguments
filter - HikeAggregateFilter

Filter to find records to aggregate on

tablesAggregate - [UserTablesAggregateResponse!]!
Arguments
filter - TableAggregateFilter

Filter to find records to aggregate on

avatar - Photo
friends - [User!]!
Arguments
filter - UserFilter

Specify to filter the records returned.

sorting - [UserSort!]

Specify to sort results.

performances - [Performance!]!
Arguments
filter - PerformanceFilter

Specify to filter the records returned.

sorting - [PerformanceSort!]

Specify to sort results.

reviews - [Review!]!
Arguments
filter - ReviewFilter

Specify to filter the records returned.

sorting - [ReviewSort!]

Specify to sort results.

likes - UserLikesConnection!
Arguments
paging - CursorPaging

Limit or page results.

filter - HikeFilter

Specify to filter the records returned.

sorting - [HikeSort!]

Specify to sort results.

tables - [Table!]!
Arguments
filter - TableFilter

Specify to filter the records returned.

sorting - [TableSort!]

Specify to sort results.

isFriend - Boolean!
Example
{
  "id": "4",
  "pseudo": "xyz789",
  "email": "xyz789",
  "password": "abc123",
  "publicKey": "xyz789",
  "credidential": 987.65,
  "public": false,
  "createdAt": "2007-12-03T10:15:30Z",
  "friendsAggregate": [UserFriendsAggregateResponse],
  "performancesAggregate": [
    UserPerformancesAggregateResponse
  ],
  "reviewsAggregate": [UserReviewsAggregateResponse],
  "likesAggregate": [UserLikesAggregateResponse],
  "tablesAggregate": [UserTablesAggregateResponse],
  "avatar": Photo,
  "friends": [User],
  "performances": [Performance],
  "reviews": [Review],
  "likes": UserLikesConnection,
  "tables": [Table],
  "isFriend": true
}

UserAggregateFilter

Example
{
  "and": [UserAggregateFilter],
  "or": [UserAggregateFilter],
  "id": IDFilterComparison,
  "pseudo": StringFieldComparison,
  "email": StringFieldComparison,
  "password": StringFieldComparison,
  "publicKey": StringFieldComparison,
  "credidential": NumberFieldComparison,
  "public": BooleanFieldComparison,
  "createdAt": DateFieldComparison
}

UserAggregateGroupBy

Fields
Field Name Description
id - ID
pseudo - String
email - String
password - String
publicKey - String
credidential - Float
public - Boolean
createdAt - DateTime
Example
{
  "id": 4,
  "pseudo": "xyz789",
  "email": "abc123",
  "password": "xyz789",
  "publicKey": "abc123",
  "credidential": 123.45,
  "public": false,
  "createdAt": "2007-12-03T10:15:30Z"
}

UserAggregateResponse

Fields
Field Name Description
groupBy - UserAggregateGroupBy
count - UserCountAggregate
sum - UserSumAggregate
avg - UserAvgAggregate
min - UserMinAggregate
max - UserMaxAggregate
Example
{
  "groupBy": UserAggregateGroupBy,
  "count": UserCountAggregate,
  "sum": UserSumAggregate,
  "avg": UserAvgAggregate,
  "min": UserMinAggregate,
  "max": UserMaxAggregate
}

UserAvgAggregate

Fields
Field Name Description
credidential - Float
Example
{"credidential": 123.45}

UserConnection

Fields
Field Name Description
pageInfo - PageInfo! Paging information
edges - [UserEdge!]! Array of edges.
totalCount - Int! Fetch total count of records
Example
{
  "pageInfo": PageInfo,
  "edges": [UserEdge],
  "totalCount": 123
}

UserCountAggregate

Fields
Field Name Description
id - Int
pseudo - Int
email - Int
password - Int
publicKey - Int
credidential - Int
public - Int
createdAt - Int
Example
{
  "id": 987,
  "pseudo": 123,
  "email": 987,
  "password": 123,
  "publicKey": 123,
  "credidential": 123,
  "public": 987,
  "createdAt": 123
}

UserEdge

Fields
Field Name Description
node - User! The node containing the User
cursor - ConnectionCursor! Cursor for this node.
Example
{
  "node": User,
  "cursor": ConnectionCursor
}

UserFilter

Fields
Input Field Description
and - [UserFilter!]
or - [UserFilter!]
id - IDFilterComparison
pseudo - StringFieldComparison
email - StringFieldComparison
password - StringFieldComparison
publicKey - StringFieldComparison
credidential - NumberFieldComparison
public - BooleanFieldComparison
createdAt - DateFieldComparison
Example
{
  "and": [UserFilter],
  "or": [UserFilter],
  "id": IDFilterComparison,
  "pseudo": StringFieldComparison,
  "email": StringFieldComparison,
  "password": StringFieldComparison,
  "publicKey": StringFieldComparison,
  "credidential": NumberFieldComparison,
  "public": BooleanFieldComparison,
  "createdAt": DateFieldComparison
}

UserFriendsAggregateGroupBy

Fields
Field Name Description
id - ID
pseudo - String
email - String
password - String
publicKey - String
credidential - Float
public - Boolean
createdAt - DateTime
Example
{
  "id": "4",
  "pseudo": "abc123",
  "email": "xyz789",
  "password": "abc123",
  "publicKey": "xyz789",
  "credidential": 987.65,
  "public": false,
  "createdAt": "2007-12-03T10:15:30Z"
}

UserFriendsAggregateResponse

Example
{
  "groupBy": UserFriendsAggregateGroupBy,
  "count": UserFriendsCountAggregate,
  "sum": UserFriendsSumAggregate,
  "avg": UserFriendsAvgAggregate,
  "min": UserFriendsMinAggregate,
  "max": UserFriendsMaxAggregate
}

UserFriendsAvgAggregate

Fields
Field Name Description
credidential - Float
Example
{"credidential": 123.45}

UserFriendsCountAggregate

Fields
Field Name Description
id - Int
pseudo - Int
email - Int
password - Int
publicKey - Int
credidential - Int
public - Int
createdAt - Int
Example
{
  "id": 987,
  "pseudo": 987,
  "email": 123,
  "password": 987,
  "publicKey": 987,
  "credidential": 987,
  "public": 123,
  "createdAt": 987
}

UserFriendsMaxAggregate

Fields
Field Name Description
id - ID
pseudo - String
email - String
password - String
publicKey - String
credidential - Float
createdAt - DateTime
Example
{
  "id": "4",
  "pseudo": "abc123",
  "email": "abc123",
  "password": "xyz789",
  "publicKey": "abc123",
  "credidential": 123.45,
  "createdAt": "2007-12-03T10:15:30Z"
}

UserFriendsMinAggregate

Fields
Field Name Description
id - ID
pseudo - String
email - String
password - String
publicKey - String
credidential - Float
createdAt - DateTime
Example
{
  "id": 4,
  "pseudo": "abc123",
  "email": "xyz789",
  "password": "xyz789",
  "publicKey": "abc123",
  "credidential": 987.65,
  "createdAt": "2007-12-03T10:15:30Z"
}

UserFriendsSumAggregate

Fields
Field Name Description
credidential - Float
Example
{"credidential": 123.45}

UserInput

Fields
Input Field Description
pseudo - String! Pseudo of the user
email - String! E-mail of the user
password - String! Password of the user
Example
{
  "pseudo": "abc123",
  "email": "xyz789",
  "password": "abc123"
}

UserLikesAggregateGroupBy

Fields
Field Name Description
id - ID
name - String
distance - Float
elevation - Float
difficulty - Difficulty
duration - Float
latitude - Float
longitude - Float
createdAt - DateTime
Example
{
  "id": "4",
  "name": "xyz789",
  "distance": 123.45,
  "elevation": 987.65,
  "difficulty": "EASY",
  "duration": 123.45,
  "latitude": 987.65,
  "longitude": 123.45,
  "createdAt": "2007-12-03T10:15:30Z"
}

UserLikesAggregateResponse

Example
{
  "groupBy": UserLikesAggregateGroupBy,
  "count": UserLikesCountAggregate,
  "sum": UserLikesSumAggregate,
  "avg": UserLikesAvgAggregate,
  "min": UserLikesMinAggregate,
  "max": UserLikesMaxAggregate
}

UserLikesAvgAggregate

Fields
Field Name Description
distance - Float
elevation - Float
duration - Float
latitude - Float
longitude - Float
Example
{
  "distance": 123.45,
  "elevation": 123.45,
  "duration": 123.45,
  "latitude": 987.65,
  "longitude": 987.65
}

UserLikesConnection

Fields
Field Name Description
pageInfo - PageInfo! Paging information
edges - [HikeEdge!]! Array of edges.
totalCount - Int! Fetch total count of records
Example
{
  "pageInfo": PageInfo,
  "edges": [HikeEdge],
  "totalCount": 123
}

UserLikesCountAggregate

Fields
Field Name Description
id - Int
name - Int
distance - Int
elevation - Int
difficulty - Int
duration - Int
latitude - Int
longitude - Int
createdAt - Int
Example
{
  "id": 987,
  "name": 987,
  "distance": 123,
  "elevation": 987,
  "difficulty": 123,
  "duration": 987,
  "latitude": 123,
  "longitude": 123,
  "createdAt": 987
}

UserLikesMaxAggregate

Fields
Field Name Description
id - ID
name - String
distance - Float
elevation - Float
difficulty - Difficulty
duration - Float
latitude - Float
longitude - Float
createdAt - DateTime
Example
{
  "id": 4,
  "name": "abc123",
  "distance": 987.65,
  "elevation": 123.45,
  "difficulty": "EASY",
  "duration": 123.45,
  "latitude": 987.65,
  "longitude": 987.65,
  "createdAt": "2007-12-03T10:15:30Z"
}

UserLikesMinAggregate

Fields
Field Name Description
id - ID
name - String
distance - Float
elevation - Float
difficulty - Difficulty
duration - Float
latitude - Float
longitude - Float
createdAt - DateTime
Example
{
  "id": 4,
  "name": "abc123",
  "distance": 123.45,
  "elevation": 987.65,
  "difficulty": "EASY",
  "duration": 987.65,
  "latitude": 123.45,
  "longitude": 123.45,
  "createdAt": "2007-12-03T10:15:30Z"
}

UserLikesSumAggregate

Fields
Field Name Description
distance - Float
elevation - Float
duration - Float
latitude - Float
longitude - Float
Example
{
  "distance": 987.65,
  "elevation": 987.65,
  "duration": 123.45,
  "latitude": 987.65,
  "longitude": 987.65
}

UserMaxAggregate

Fields
Field Name Description
id - ID
pseudo - String
email - String
password - String
publicKey - String
credidential - Float
createdAt - DateTime
Example
{
  "id": "4",
  "pseudo": "xyz789",
  "email": "xyz789",
  "password": "xyz789",
  "publicKey": "xyz789",
  "credidential": 123.45,
  "createdAt": "2007-12-03T10:15:30Z"
}

UserMinAggregate

Fields
Field Name Description
id - ID
pseudo - String
email - String
password - String
publicKey - String
credidential - Float
createdAt - DateTime
Example
{
  "id": 4,
  "pseudo": "abc123",
  "email": "xyz789",
  "password": "xyz789",
  "publicKey": "abc123",
  "credidential": 123.45,
  "createdAt": "2007-12-03T10:15:30Z"
}

UserPerformancesAggregateGroupBy

Fields
Field Name Description
id - ID
date - DateTime
distance - Float
elevation - Float
duration - Float
createdAt - DateTime
Example
{
  "id": "4",
  "date": "2007-12-03T10:15:30Z",
  "distance": 987.65,
  "elevation": 123.45,
  "duration": 123.45,
  "createdAt": "2007-12-03T10:15:30Z"
}

UserPerformancesAggregateResponse

Example
{
  "groupBy": UserPerformancesAggregateGroupBy,
  "count": UserPerformancesCountAggregate,
  "sum": UserPerformancesSumAggregate,
  "avg": UserPerformancesAvgAggregate,
  "min": UserPerformancesMinAggregate,
  "max": UserPerformancesMaxAggregate
}

UserPerformancesAvgAggregate

Fields
Field Name Description
distance - Float
elevation - Float
duration - Float
Example
{"distance": 987.65, "elevation": 123.45, "duration": 123.45}

UserPerformancesCountAggregate

Fields
Field Name Description
id - Int
date - Int
distance - Int
elevation - Int
duration - Int
createdAt - Int
Example
{
  "id": 987,
  "date": 987,
  "distance": 123,
  "elevation": 123,
  "duration": 123,
  "createdAt": 123
}

UserPerformancesMaxAggregate

Fields
Field Name Description
id - ID
date - DateTime
distance - Float
elevation - Float
duration - Float
createdAt - DateTime
Example
{
  "id": 4,
  "date": "2007-12-03T10:15:30Z",
  "distance": 987.65,
  "elevation": 123.45,
  "duration": 987.65,
  "createdAt": "2007-12-03T10:15:30Z"
}

UserPerformancesMinAggregate

Fields
Field Name Description
id - ID
date - DateTime
distance - Float
elevation - Float
duration - Float
createdAt - DateTime
Example
{
  "id": "4",
  "date": "2007-12-03T10:15:30Z",
  "distance": 987.65,
  "elevation": 123.45,
  "duration": 987.65,
  "createdAt": "2007-12-03T10:15:30Z"
}

UserPerformancesSumAggregate

Fields
Field Name Description
distance - Float
elevation - Float
duration - Float
Example
{"distance": 123.45, "elevation": 987.65, "duration": 123.45}

UserReviewsAggregateGroupBy

Fields
Field Name Description
id - ID
rating - Float
createdAt - DateTime
Example
{
  "id": 4,
  "rating": 987.65,
  "createdAt": "2007-12-03T10:15:30Z"
}

UserReviewsAggregateResponse

Example
{
  "groupBy": UserReviewsAggregateGroupBy,
  "count": UserReviewsCountAggregate,
  "sum": UserReviewsSumAggregate,
  "avg": UserReviewsAvgAggregate,
  "min": UserReviewsMinAggregate,
  "max": UserReviewsMaxAggregate
}

UserReviewsAvgAggregate

Fields
Field Name Description
rating - Float
Example
{"rating": 123.45}

UserReviewsCountAggregate

Fields
Field Name Description
id - Int
rating - Int
createdAt - Int
Example
{"id": 123, "rating": 123, "createdAt": 987}

UserReviewsMaxAggregate

Fields
Field Name Description
id - ID
rating - Float
createdAt - DateTime
Example
{
  "id": 4,
  "rating": 123.45,
  "createdAt": "2007-12-03T10:15:30Z"
}

UserReviewsMinAggregate

Fields
Field Name Description
id - ID
rating - Float
createdAt - DateTime
Example
{
  "id": 4,
  "rating": 987.65,
  "createdAt": "2007-12-03T10:15:30Z"
}

UserReviewsSumAggregate

Fields
Field Name Description
rating - Float
Example
{"rating": 987.65}

UserSort

Fields
Input Field Description
field - UserSortFields!
direction - SortDirection!
nulls - SortNulls
Example
{"field": "id", "direction": "ASC", "nulls": "NULLS_FIRST"}

UserSortFields

Values
Enum Value Description

id

pseudo

email

password

publicKey

credidential

public

createdAt

Example
"id"

UserSumAggregate

Fields
Field Name Description
credidential - Float
Example
{"credidential": 123.45}

UserTablesAggregateGroupBy

Fields
Field Name Description
id - ID
name - String
createdAt - DateTime
Example
{
  "id": "4",
  "name": "abc123",
  "createdAt": "2007-12-03T10:15:30Z"
}

UserTablesAggregateResponse

Fields
Field Name Description
groupBy - UserTablesAggregateGroupBy
count - UserTablesCountAggregate
min - UserTablesMinAggregate
max - UserTablesMaxAggregate
Example
{
  "groupBy": UserTablesAggregateGroupBy,
  "count": UserTablesCountAggregate,
  "min": UserTablesMinAggregate,
  "max": UserTablesMaxAggregate
}

UserTablesCountAggregate

Fields
Field Name Description
id - Int
name - Int
createdAt - Int
Example
{"id": 987, "name": 123, "createdAt": 123}

UserTablesMaxAggregate

Fields
Field Name Description
id - ID
name - String
createdAt - DateTime
Example
{
  "id": 4,
  "name": "xyz789",
  "createdAt": "2007-12-03T10:15:30Z"
}

UserTablesMinAggregate

Fields
Field Name Description
id - ID
name - String
createdAt - DateTime
Example
{
  "id": 4,
  "name": "abc123",
  "createdAt": "2007-12-03T10:15:30Z"
}

UserUpdateInput

Fields
Input Field Description
pseudo - String Pseudo of the user
email - String E-mail of the user
password - String Password of the user
Example
{
  "pseudo": "xyz789",
  "email": "xyz789",
  "password": "xyz789"
}