Query

Every GraphQL schema has a root type for both queries and mutations. The query type defines GraphQL operations that retrieve data from the server.

Connections

collections (CollectionConnection!)

Look up Collections by various parameters.

Argument Type Description
after String

Returns the elements in the list that come after the specified cursor.

before String

Returns the elements in the list that come before the specified cursor.

featured Boolean

Select Collections that have been featured or not featured depending on given value.

first Int

Returns the first n elements from the list.

last Int

Returns the last n elements from the list.

order CollectionsOrder

Define order for the Collections.

The default value is FOLLOWERS_COUNT.

postId ID

Select Collections that have the Post with the given ID.

userId ID

Select Collections that are created by User with the given ID.

goals (GoalConnection!)

Look up Goals by various parameters.

Argument Type Description
after String

Returns the elements in the list that come after the specified cursor.

before String

Returns the elements in the list that come before the specified cursor.

completed Boolean

Select Goals that have been completed or not completed depending on given value.

first Int

Returns the first n elements from the list.

last Int

Returns the last n elements from the list.

makerGroupId ID

Select Goals that are created in the MakerGroup(Space) with given ID.

makerProjectId ID

Select Goals that are created in the MakerProject with given ID.

order GoalsOrder

Define order for the Goals.

The default value is NEWEST.

userId ID

Select Goals that are created by User with the given ID.

makerGroups (MakerGroupConnection!)

Look up MakerGroups by various parameters.

Argument Type Description
after String

Returns the elements in the list that come after the specified cursor.

before String

Returns the elements in the list that come before the specified cursor.

first Int

Returns the first n elements from the list.

last Int

Returns the last n elements from the list.

order MakerGroupsOrder

Define order for the MakerGroups.

The default value is NEWEST.

userId ID

Select MakerGroups that the User with the given ID is accepted member of.

posts (PostConnection!)

Look up Posts by various parameters.

Argument Type Description
after String

Returns the elements in the list that come after the specified cursor.

before String

Returns the elements in the list that come before the specified cursor.

featured Boolean

Select Posts that have been featured or not featured depending on given value.

first Int

Returns the first n elements from the list.

last Int

Returns the last n elements from the list.

order PostsOrder

Define order for the Posts.

The default value is RANKING.

postedAfter DateTime

Select Posts which were posted after the given date and time.

postedBefore DateTime

Select Posts which were posted before the given date and time.

topic String

Select Posts that have the given slug as one of their topics.

twitterUrl String

Select Posts that have the given twitter url.

topics (TopicConnection!)

Look up Topics by various parameters.

Argument Type Description
after String

Returns the elements in the list that come after the specified cursor.

before String

Returns the elements in the list that come before the specified cursor.

first Int

Returns the first n elements from the list.

followedByUserId ID

Select Topics that are followed by User with the given ID.

last Int

Returns the last n elements from the list.

order TopicsOrder

Define order for the Topics.

The default value is NEWEST.

query String

Select Topics whose name or aliases match the given string

Fields

collection (Collection)

Look up a Collection(only published).

Argument Type Description
id ID

ID for the object.

slug String

URL friendly slug for the object.

comment (Comment)

Look up a Comment.

Argument Type Description
id ID!

ID for the object.

goal (Goal)

Look up a Goal.

Argument Type Description
id ID!

ID for the object.

makerGroup (MakerGroup)

Look up a MakerGroup.

Argument Type Description
id ID!

ID for the object.

post (Post)

Look up a Post.

Argument Type Description
id ID

ID for the object.

slug String

URL friendly slug for the object.

topic (Topic)

Look up a Topic.

Argument Type Description
id ID

ID for the object.

slug String

URL friendly slug for the object.

user (User)

Look up a User.

Argument Type Description
id ID

ID for the user.

username String

Username for the user.

viewer (Viewer)

Top level scope for currently authenticated user. Includes goals, makerGroups, makerProjects & user fields.