Skip to content

Locales

Field Type Description
closestLocale
near: CoordinatesInput!
Locale The locale nearest a position.
locale
id: ID!
Locale A locale in the audience by its UUID.
locales
at: CoordinatesInput
kind: LocaleKind
parentId: ID
roots: Boolean
[Locale!]! Locales belonging to this audience: all of them, or those the arguments pick.
Operation Returns Description
addLocaleGuide staffql only
input: LocaleGuideAddInput!
LocaleGuideAddPayload Links a local guide (a city’s LGBTQ+ guide, a nightlife listing, a community calendar) to one of the audience’s locales. Research reads a locale’s guides first when it looks for venues and events there. Adding a link it already has updates its title and note. requires locales:write:* or locales:admin:mine
createLocale staffql only
input: LocaleCreateInput!
LocaleCreatePayload Adds a locale to the audience: a city or neighborhood its venues are in. requires locales:write:*
deleteCommunityResource staffql only
input: CommunityResourceDeleteInput!
CommunityResourceDeletePayload Deletes a community resource and the flyers pointing at it. requires locales:write:* or locales:admin:mine
deleteDigitalFlyer staffql only
input: DigitalFlyerDeleteInput!
DigitalFlyerDeletePayload Deletes a digital flyer. requires locales:write:* or locales:admin:mine
deleteLocale staffql only
input: LocaleDeleteInput!
LocaleDeletePayload Deletes one of the audience’s locales. Its venues, and the locales within it, must be moved or deleted first. requires locales:write:*
groupLocale staffql only
input: LocaleGroupInput!
LocaleGroupPayload Groups a city, county or other jurisdiction locale into a super locale (a metro). The metro then lists what it holds and is shown in its place; its liquor rules stay its own. requires locales:write:*
mergeLocale staffql only
input: LocaleMergeInput!
LocaleMergePayload Moves a locale into another locale in this audience, preserving its records and deleting the source. requires locales:write:*
removeLocaleGuide staffql only
input: LocaleGuideRemoveInput!
LocaleGuideRemovePayload Unlinks a local guide from its locale, so research no longer reads it. requires locales:write:* or locales:admin:mine
saveCommunityResource staffql only
input: CommunityResourceSaveInput!
CommunityResourceSavePayload Adds a community resource (food, shelter, health, crisis, DV) to a locale, or changes one. requires locales:write:* or locales:admin:mine
saveDigitalFlyer staffql only
input: DigitalFlyerSaveInput!
DigitalFlyerSavePayload Adds a digital flyer for a locale (or the whole audience), or changes one. It shows to everyone in the city while it is live; its tone and category follow from its tags. requires locales:write:* or locales:admin:mine
ungroupLocale staffql only
input: LocaleUngroupInput!
LocaleUngroupPayload Takes a jurisdiction locale out of the super locale grouping it. requires locales:write:*
updateLocale staffql only
input: LocaleUpdateInput!
LocaleUpdatePayload Changes one of the audience’s locales. requires locales:write:*

Object

Who is credited on something, and as what: a persona (a publication, author, organization or performer), or a member whose suggestion was accepted.

Field Type Description
derivedFrom Credit For a republisher, the credit it republished.
hiddenAt ISO8601DateTime When an admin hid it; null when not hidden. requires audience:write:*
id ID! The credit’s id.
member Profile The member credited, for a suggester: named “First L.” unless the viewer may see their full name.
name String! Who is credited, as shown in the credits.
person Person The persona credited; null for a suggester.
role CreditRole! What they are credited as.
shown Boolean! Whether everyone sees it: not hidden, not an unonboarded publisher’s, and a suggester’s only when they chose to be. requires audience:write:*

Object · implements HasBanner, HasCredits, HasTimestamps, Node

A geographic area containing venues and featured people.

Field Type Description
accessGrants staffql only [AccessGrant!]! Permissions granted on this locale to specific principals. requires locales:read:mine or locales:admin:*
allCredits staffql only [Credit!]! Every credit on it, shown or not, for its admins. requires audience:write:*
ancestors [Locale!]! The locales it lies within, outermost first (a congressional district’s: its country, then its state). Empty for a top-level locale.
articles IArticles! The instance’s IArticles mixin. Left out of the schema where its module isn’t installed.
bannerUrl PhotoURL A photo of the place, for the top of its screens.
beaconMajor Int The major identifier of the locale beacon.
boundarySource String Where its outline came from: tiger, statcan, osm, overture, union (its members’ outlines) or manual; null without one.
chat ILocaleChat! The instance’s ILocaleChat mixin. Left out of the schema where its module isn’t installed.
chatRetentionMinutes Int! How many minutes its chat room shows a message before it expires.
children
kind: LocaleKind
[Locale!]! The locales directly within it (a state’s districts), by name.
cityNames [String!]! Cities and neighborhoods it covers.
createdAt ISO8601DateTime! When the record was created.
credits [Credit!]! Its credits that everyone sees, original source first.
divisionId String Its Open Civic Data division ID, e.g. ocd-division/country:us/state:ut/cd:3, for districts and other official divisions.
envelope GeoJSON The geographic boundary of this place.
events ILocaleEvents! The instance’s ILocaleEvents mixin. Left out of the schema where its module isn’t installed.
friends ILocaleFriends! The instance’s ILocaleFriends mixin. Left out of the schema where its module isn’t installed.
guides staffql only [LocaleGuide!]! Local guides linked to it (a city’s LGBTQ+ guide, a nightlife listing), which research reads first when it looks for venues and events here.
hasBoundary Boolean! Whether its exact outline (a district map) is known; where it is, what lies in it is decided by the outline, not the envelope.
id ID! Unique identifier.
kind LocaleKind! What sort of place it is: METRO (a city and its suburbs) unless set.
label String Short label for the locale.
liquor ILocaleLiquor! The instance’s ILocaleLiquor mixin. Left out of the schema where its module isn’t installed.
location Location The geographic location of this place.
memberLocales [Locale!]! For a super locale (a metro grouping jurisdictions, like Moscow–Pullman), the locales it groups, by name. Empty otherwise.
name String Display name.
offices
above: Boolean
status: [OfficeStatus!]
titles: Boolean
[PersonOffice!]! Who represents it and who is running for it: the offices on it, most local first, the holder before those running. Former officeholders are left out.
parent Locale The locale it lies within; null for a top-level one.
people ILocalePeople! The instance’s ILocalePeople mixin. Left out of the schema where its module isn’t installed.
posts IPosts! The instance’s IPosts mixin. Left out of the schema where its module isn’t installed.
profile IListingProfile! The instance’s IListingProfile mixin. Left out of the schema where its module isn’t installed.
promoCitySize staffql only String! Its rate card city size (small, large); the cheapest until the audience sets one.
rollUp
itemKinds: [EntityLinkItemKind!]
limit: Int
statuses: [EntityLinkStatus!]
[EntityLink!]! Items linked to it or to anything under it (a venue’s events and series, a locale’s venues), one row per item, newest first. Only linked items, unless an admin asks for suggested or rejected ones too.
rooms staffql only IRooms The instance’s IRooms mixin, when available to the viewer. requires rooms:read:member
superLocale Locale The super locale grouping it (Moscow–Pullman for Pullman), shown in the apps in its place; null when none does. Liquor rules still come from its own chain.
timeZone String! Its IANA time zone, e.g. America/Los_Angeles, else that of the nearest locale above it; Etc/UTC until one is known.
updatedAt ISO8601DateTime! When the record was last updated.
venues ILocaleVenues! The instance’s ILocaleVenues mixin. Left out of the schema where its module isn’t installed.

Object · staffql only

A local guide linked to a locale (a city’s LGBTQ+ guide, a nightlife listing, a community calendar). Research reads a locale’s guides first when it looks for venues and events there.

Field Type Description
createdAt staffql only ISO8601DateTime! When it was linked.
createdBy staffql only User Who linked it.
id staffql only ID! Unique identifier.
note staffql only String What it is good for, which research reads as a hint.
title staffql only String What staff call it.
updatedAt staffql only ISO8601DateTime! When it last changed.
url staffql only String! The guide, an http(s) link.

Object · implements HasBanner, HasPhoto, HasTimestamps, Node

A geographic place and its provider details.

Field Type Description
address String Its full address.
bannerUrl PhotoURL The banner’s CDN URL, if there is one.
createdAt ISO8601DateTime! When the record was created.
envelope Geography The geographic boundary of this place.
id ID! Unique identifier.
photoUrl PhotoURL The photo’s CDN URL, if there is one.
places IPlacesProfile! The instance’s IPlacesProfile mixin. Left out of the schema where its module isn’t installed.
point Geography The geographic point of this place.
updatedAt ISO8601DateTime! When the record was last updated.

Object · staffql only

Autogenerated return type of CommunityResourceDelete.

Field Type Description
clientMutationId staffql only String A unique identifier for the client performing the mutation.
id staffql only ID! The deleted resource.

Object · staffql only

Autogenerated return type of CommunityResourceSave.

Field Type Description
clientMutationId staffql only String A unique identifier for the client performing the mutation.
resource staffql only CommunityResource! The resource, as saved.

Object · staffql only

Autogenerated return type of DigitalFlyerDelete.

Field Type Description
clientMutationId staffql only String A unique identifier for the client performing the mutation.
id staffql only ID! The deleted flyer.

Object · staffql only

Autogenerated return type of DigitalFlyerSave.

Field Type Description
clientMutationId staffql only String A unique identifier for the client performing the mutation.
flyer staffql only DigitalFlyer! The flyer, as saved.

Object · staffql only

Autogenerated return type of LocaleCreate.

Field Type Description
clientMutationId staffql only String A unique identifier for the client performing the mutation.
locale staffql only Locale! The locale that was added.

Object · staffql only

Autogenerated return type of LocaleDelete.

Field Type Description
clientMutationId staffql only String A unique identifier for the client performing the mutation.
deletedId staffql only ID! ID of the locale that was deleted.

Object · staffql only

Autogenerated return type of LocaleGroup.

Field Type Description
clientMutationId staffql only String A unique identifier for the client performing the mutation.
superLocale staffql only Locale! The super locale, with its new member.

Object · staffql only

Autogenerated return type of LocaleGuideAdd.

Field Type Description
clientMutationId staffql only String A unique identifier for the client performing the mutation.
guide staffql only LocaleGuide! The guide, as saved.
locale staffql only Locale! The locale, after the change.

Object · staffql only

Autogenerated return type of LocaleGuideRemove.

Field Type Description
clientMutationId staffql only String A unique identifier for the client performing the mutation.
deletedId staffql only ID! ID of the guide that was removed.
locale staffql only Locale! The locale, after the change.

Object · staffql only

Autogenerated return type of LocaleMerge.

Field Type Description
clientMutationId staffql only String A unique identifier for the client performing the mutation.
deletedId staffql only ID! The removed locale ID.
locale staffql only Locale! The surviving locale.

Object · staffql only

Autogenerated return type of LocaleUngroup.

Field Type Description
clientMutationId staffql only String A unique identifier for the client performing the mutation.
locale staffql only Locale! The locale, now in no super locale.

Object · staffql only

Autogenerated return type of LocaleUpdate.

Field Type Description
clientMutationId staffql only String A unique identifier for the client performing the mutation.
locale staffql only Locale! The locale, after the change.

Input · staffql only

Autogenerated input type of CommunityResourceDelete

Field Type Description
clientMutationId staffql only String A unique identifier for the client performing the mutation.
id staffql only ID! The resource.

Input · staffql only

A community resource to add or change. Fields left out are left as they are.

Field Type Description
address staffql only String Where it is.
checkedAt staffql only ISO8601Date When its details were checked.
description staffql only String What it offers.
facets staffql only [String!] CommunityResource.facets.
hidden staffql only Boolean Leave it out of the directory and flyers.
hours staffql only [CommunityResourceSlotInput!] Regular hours.
intakeNote staffql only String What to bring or expect.
latitude staffql only Float Where it is.
localeId staffql only ID The locale it is in; required for a new one.
longitude staffql only Float Where it is.
name staffql only String Its real name; required for a new one.
neutralTitle staffql only String What lists show instead of its name; required for dv-stalking.
phone staffql only String The number to call.
sessions staffql only [CommunityResourceSlotInput!] Recurring sessions.
sourceUrl staffql only String Where its details were checked.
textNumber staffql only String The number to text.
url staffql only String Its website.

Input · staffql only

Autogenerated input type of CommunityResourceSave

Field Type Description
clientMutationId staffql only String A unique identifier for the client performing the mutation.
id staffql only ID The resource to change; left out to add one.
resource staffql only CommunityResourceInput! Its details.

Input · staffql only

Regular hours on some days, or a recurring session (a mobile pantry stop).

Field Type Description
address staffql only String Where a session is, when somewhere else.
days staffql only [Int!] Weekdays (0 = Sunday); empty for all.
from staffql only String Start, HH:MM local time.
note staffql only String Anything to know about it.
place staffql only String What the place is called.
until staffql only String End, HH:MM local time.

Input

A device’s position, with the iBeacon it can see when it can see one.

Field Type Description
beaconMajor Int The beacon’s major value: a locale.
beaconMinor Int The beacon’s minor value. Not used yet.
latitude Float! Latitude in decimal degrees.
longitude Float! Longitude in decimal degrees.

Input · staffql only

Autogenerated input type of DigitalFlyerDelete

Field Type Description
clientMutationId staffql only String A unique identifier for the client performing the mutation.
id staffql only ID! The flyer.

Input · staffql only

A digital flyer to add or change. Fields left out are left as they are.

Field Type Description
body staffql only String A line or two under the headline.
communityResourceId staffql only ID The resource it points at; null for none.
endsOn staffql only ISO8601Date Last day it shows.
headline staffql only String What it says; required for a new one.
linkLabel staffql only String What its link says.
linkUrl staffql only String Where its link goes.
localeId staffql only ID The locale it is for; null for the whole audience.
paused staffql only Boolean Stop showing it.
showDays staffql only [Int!] Weekdays it shows on (0 = Sunday).
showFrom staffql only String HH:MM it starts showing each day.
showUntil staffql only String HH:MM it stops showing each day.
startsOn staffql only ISO8601Date First day it shows.
tags staffql only [String!] DigitalFlyer.tags.

Input · staffql only

Autogenerated input type of DigitalFlyerSave

Field Type Description
clientMutationId staffql only String A unique identifier for the client performing the mutation.
flyer staffql only DigitalFlyerInput! Its details.
id staffql only ID The flyer to change; left out to add one.

Input · staffql only

Autogenerated input type of LocaleCreate

Field Type Description
clientMutationId staffql only String A unique identifier for the client performing the mutation.
locale staffql only LocaleInput! Its details. Needs a name.

Input · staffql only

Autogenerated input type of LocaleDelete

Field Type Description
clientMutationId staffql only String A unique identifier for the client performing the mutation.
id staffql only ID! The ID of the locale.

Input · staffql only

Autogenerated input type of LocaleGroup

Field Type Description
clientMutationId staffql only String A unique identifier for the client performing the mutation.
memberLocaleId staffql only ID! The jurisdiction locale to group.
superLocaleId staffql only ID! The metro to group it into.

Input · staffql only

Autogenerated input type of LocaleGuideAdd

Field Type Description
clientMutationId staffql only String A unique identifier for the client performing the mutation.
guide staffql only LocaleGuideInput! The guide.
localeId staffql only ID! The ID of the locale.

Input · staffql only

A local guide to link to a locale.

Field Type Description
note staffql only String What it is good for, e.g. “the best list of drag nights”. Research reads it as a hint.
title staffql only String What to call it, e.g. “Out in Denver bar guide”.
url staffql only String! The guide, an http(s) link.

Input · staffql only

Autogenerated input type of LocaleGuideRemove

Field Type Description
clientMutationId staffql only String A unique identifier for the client performing the mutation.
id staffql only ID! The ID of the guide.

Input · staffql only

A locale’s details. Fields left out are not changed.

Field Type Description
beaconMajor staffql only Int iBeacon major number for its venues.
cityNames staffql only [String!] Cities and neighborhoods it covers.
divisionId staffql only String Its Open Civic Data division ID, e.g. ocd-division/country:us/state:ut/cd:3. Unique in the audience. Null clears it.
googlePlaceId staffql only String Its Google place ID (a city or region), from Query.places.search. Its name, center and time zone come from Google when the server has a Google API key.
kind staffql only LocaleKind What sort of place it is. Null makes it a metro area.
label staffql only String Short key, e.g. “seattle”. Defaults from the name.
metaMetro staffql only MetaMetroInput The Meta metro area it sits in, for Facebook targeting. Null unlinks it.
name staffql only String Its name, e.g. “Seattle”. Required to create one.
parentId staffql only ID The locale it lies within (a district’s state), in the same audience. Null makes it a top-level locale. Its time zone, when left out, comes from its parent before its audience’s other locales.
timeZone staffql only String Its IANA time zone, e.g. America/Los_Angeles. Left out when creating one, it comes from its Google place, else the zone the audience’s other locales share, else Etc/UTC.

Input · staffql only

Autogenerated input type of LocaleMerge

Field Type Description
clientMutationId staffql only String A unique identifier for the client performing the mutation.
destinationId staffql only ID! The locale to keep.
sourceId staffql only ID! The locale to merge and remove.

Input · staffql only

Autogenerated input type of LocaleUngroup

Field Type Description
clientMutationId staffql only String A unique identifier for the client performing the mutation.
localeId staffql only ID! The grouped locale.

Input · staffql only

Autogenerated input type of LocaleUpdate

Field Type Description
clientMutationId staffql only String A unique identifier for the client performing the mutation.
id staffql only ID! The ID of the locale.
locale staffql only LocaleInput! The fields to change.

Input · staffql only

A Meta metro area to link a locale to, from Query.facebook.metroSearch.

Field Type Description
key staffql only String! Meta’s key for it, e.g. DMA:819.
name staffql only String Its name on Meta, e.g. Seattle-Tacoma (WA).

Interface · implemented by Event, EventSeries, Locale, Location, Page, Person, Venue

An object with a banner: a wide image shown across the top of its page.

Field Type Description
bannerUrl PhotoURL The banner’s CDN URL, if there is one.

Interface · implemented by Article, Event, Locale, MediaTitle, Review, Venue

Something people are credited on (Credit): an event, venue, article, media title or locale.

Field Type Description
allCredits staffql only [Credit!]! Every credit on it, shown or not, for its admins. requires audience:write:*
credits [Credit!]! Its credits that everyone sees, original source first.

Interface · implemented by Article, AudienceDomain, Locale, Location, Page, Post, Publication, PublicationMedia, SelfUser, Venue

Creation and update times of a record.

Field Type Description
createdAt ISO8601DateTime! When the record was created.
updatedAt ISO8601DateTime! When the record was last updated.

Enum

A kind of item that can be linked to an event, venue, series, person or locale.

  • ARTICLE An article.
  • MEDIA_EPISODE An episode of a series.
  • MEDIA_TITLE A film or television title.
  • PERSON A person.
  • TRACK A podcast episode or music track.

Enum

What sort of place a locale is. A locale with no kind is a metro area.

  • CITY A city or town.
  • CONGRESSIONAL_DISTRICT A U.S. House district (or a state’s at-large seat).
  • COUNTRY A country.
  • COUNTY A county (or parish, or borough).
  • EVERYWHERE The top of the audience’s tree, above every locale: people featured in it are featured everywhere. Audience.locales lists it only when asked for this kind.
  • METRO A metro area: a city and its suburbs, as Hot Mess lists them.
  • NEIGHBORHOOD A neighborhood within a city.
  • PRECINCT A voting precinct.
  • STATE A state (or province).
  • STATE_HOUSE_DISTRICT A district of the lower house of a state legislature.
  • STATE_SENATE_DISTRICT A district of the upper house of a state legislature.
  • TERRITORY A territory or federal district, e.g. Puerto Rico or DC.
  • WARD A city council ward or district.

Scalar

A geographic point or boundary.

Scalar

Geographic data encoded as GeoJSON.

Scalar

An absolute URL of an image. Null, never an empty string, when there is no image. As an input, an absolute https URL.