Ping
Ping across the audience: what’s the audience’s, not any one viewer’s. The
viewer’s own pings and their friends’ are me { ping } (IUserStatePing).
Root fields
Section titled “Root fields”| Field | Type | Description |
|---|---|---|
ping |
IAudiencePing |
The instance’s IAudiencePing mixin, when available. |
Mutations
Section titled “Mutations”| Operation | Returns | Description |
|---|---|---|
endPinginput: PingEndInput! |
PingEndPayload |
Ends the signed-in user’s ping. requires ping:write:self |
joinPinginput: PingJoinInput! |
PingJoinPayload |
Says the signed-in user is in for a ping, for one pick or (with no target) the whole ping. requires ping:write:self |
leavePinginput: PingLeaveInput! |
PingLeavePayload |
Takes the signed-in user out of a ping they’re in. requires ping:write:self |
sendPinginput: PingSendInput! |
PingSendPayload |
Tells friends the signed-in user wants to go out tonight, naming venues or events, or neither. requires ping:write:self |
Objects
Section titled “Objects”AudiencePingView
Section titled “AudiencePingView”Object · implements IAudiencePing
The local Ping implementation of the audience’s Ping.
| Field | Type | Description |
|---|---|---|
count |
Int |
How many active pings there are tonight. Admins only; a count, never names. requires ping:read:mine or ping:read:my_troupes or ping:read:venue |
Object · implements Node
Someone saying they want to go out tonight. It lasts until 5am in its locale. The sender and everyone who’s in make up its circle.
| Field | Type | Description |
|---|---|---|
chat |
PrivateChat |
The circle’s chat, once someone has joined: for the sender and everyone who’s in, until the ping ends. Null for anyone else, and in audiences without chat. |
createdAt |
ISO8601DateTime! |
When it was sent. |
expiresAt |
ISO8601DateTime! |
When the night ends: 5am local. |
id |
ID! |
Its ID. |
isMine |
Boolean! |
Sent by the signed-in user. |
joined |
Boolean! |
Whether the signed-in user is in. |
joins |
[PingJoin!]! |
Everyone who’s in, oldest first, leaving out anyone the signed-in user blocked or who blocked them. |
note |
String |
The sender’s own words. |
reach |
PingReach! |
Who sees it. |
targets |
[PingTarget!]! |
The picks, in the order chosen. Empty means anywhere. |
user |
Friend! |
Who sent it. |
via |
Friend |
The circle member the signed-in user sees it through, when the sender isn’t their friend. |
PingFeedView
Section titled “PingFeedView”Object · implements IPingFeed
The local Ping implementation of a scoped feed.
| Field | Type | Description |
|---|---|---|
count |
Int |
How many active pings pick it tonight (for a venue, it or one of its events). Admins and the managers of a venue’s or event’s listing only; a count, never names. requires ping:read:mine or ping:read:my_troupes or ping:read:venue |
friendPings |
[Ping!]! |
Active pings visible through friendship or circle membership. |
myPing |
Ping |
The viewer’s active ping, if it picks this scope. |
UserPingView
Section titled “UserPingView”Object · implements IUserPing
The local Ping implementation of a user’s visible activity.
| Field | Type | Description |
|---|---|---|
activePing |
Ping |
Their active ping in this audience, if visible to the viewer. |
UserStatePingView
Section titled “UserStatePingView”Object · implements IUserStatePing
The local Ping implementation of the viewer’s Ping (Extensions::Ping::View, across the audience).
| Field | Type | Description |
|---|---|---|
friendPings |
[Ping!]! |
Active pings visible through friendship or circle membership. |
myPing |
Ping |
The viewer’s active ping, if any. |
Mutation payloads
Section titled “Mutation payloads”PingEndPayload
Section titled “PingEndPayload”Object
Autogenerated return type of PingEnd.
| Field | Type | Description |
|---|---|---|
clientMutationId |
String |
A unique identifier for the client performing the mutation. |
ended |
Boolean! |
Whether there was one to end. |
PingJoinPayload
Section titled “PingJoinPayload”Object
Autogenerated return type of PingJoin.
| Field | Type | Description |
|---|---|---|
clientMutationId |
String |
A unique identifier for the client performing the mutation. |
ping |
Ping! |
The ping as it now stands. |
PingLeavePayload
Section titled “PingLeavePayload”Object
Autogenerated return type of PingLeave.
| Field | Type | Description |
|---|---|---|
clientMutationId |
String |
A unique identifier for the client performing the mutation. |
ping |
Ping! |
The ping as it now stands. |
PingSendPayload
Section titled “PingSendPayload”Object
Autogenerated return type of PingSend.
| Field | Type | Description |
|---|---|---|
clientMutationId |
String |
A unique identifier for the client performing the mutation. |
ping |
Ping! |
The ping as it now stands. |
Inputs
Section titled “Inputs”PingEndInput
Section titled “PingEndInput”Input
Autogenerated input type of PingEnd
| Field | Type | Description |
|---|---|---|
clientMutationId |
String |
A unique identifier for the client performing the mutation. |
PingJoinInput
Section titled “PingJoinInput”Input
Autogenerated input type of PingJoin
| Field | Type | Description |
|---|---|---|
clientMutationId |
String |
A unique identifier for the client performing the mutation. |
invitationToken |
String |
A signed Ping invitation authorizing its recipient to join. |
pingId |
ID! |
The ping to join. |
targetId |
ID |
The pick; leave out to be in for the whole ping. |
PingLeaveInput
Section titled “PingLeaveInput”Input
Autogenerated input type of PingLeave
| Field | Type | Description |
|---|---|---|
clientMutationId |
String |
A unique identifier for the client performing the mutation. |
pingId |
ID! |
The ping to leave. |
PingSendInput
Section titled “PingSendInput”Input
Autogenerated input type of PingSend
| Field | Type | Description |
|---|---|---|
clientMutationId |
String |
A unique identifier for the client performing the mutation. |
eventIds |
[ID!] |
Tonight’s events to go to. |
localeId |
ID |
The app’s current locale; needed when no places are picked. |
note |
String |
A line in their own words, up to 140 characters. |
reach |
PingReach |
Who sees it. FRIENDS when first sent. |
venueIds |
[ID!] |
Venues to go to. |
Interfaces
Section titled “Interfaces”IAudiencePing
Section titled “IAudiencePing”Interface · implemented by AudiencePingView · mixin edge ping on Audience
Ping across the audience: what’s the audience’s, not any one viewer’s. The
viewer’s own pings and their friends’ are me { ping } (IUserStatePing).
| Field | Type | Description |
|---|---|---|
count |
Int |
How many active pings there are tonight. Admins only; a count, never names. requires ping:read:mine or ping:read:my_troupes or ping:read:venue |
IPingFeed
Section titled “IPingFeed”Interface · implemented by PingFeedView · mixin edge ping on Venue, Event
Pings visible to the viewer that pick a venue or event. The viewer’s pings
across the audience are me { ping } (IUserStatePing).
| Field | Type | Description |
|---|---|---|
count |
Int |
How many active pings pick it tonight (for a venue, it or one of its events). Admins and the managers of a venue’s or event’s listing only; a count, never names. requires ping:read:mine or ping:read:my_troupes or ping:read:venue |
friendPings |
[Ping!]! |
Active pings visible through friendship or circle membership. |
myPing |
Ping |
The viewer’s active ping, if it picks this scope. |
IUserPing
Section titled “IUserPing”Interface · implemented by UserPingView · mixin edge ping on User, Friend
A user’s Ping activity that the current viewer may see.
| Field | Type | Description |
|---|---|---|
activePing |
Ping |
Their active ping in this audience, if visible to the viewer. |
IUserStatePing
Section titled “IUserStatePing”Interface · implemented by UserStatePingView · mixin edge ping on UserState
The viewer’s Ping in the audience: their own active ping and the ones they can see.
| Field | Type | Description |
|---|---|---|
friendPings |
[Ping!]! |
Active pings visible through friendship or circle membership. |
myPing |
Ping |
The viewer’s active ping, if any. |
PingReach
Section titled “PingReach”Enum
Who sees a ping.
FRIENDSOnly the sender’s friends.FRIENDS_OF_CIRCLEFriends of anyone in its circle, so it spreads as people join.