- Docs
- API reference
- Endpoints and schemas
- GraphQL
- Selection
LegalEntityName
A legal entity is an entity which U.S. law recognizes as having an identity and rights.
Selection. This type is a selection. You reach it through a connection, and you choose which of its fields come back.
These are entities which U.S. law recognizes as having an identity and rights. They can be either natural persons, or artificial entities such as businesses and governmental bodies.
Where it appears
Section titled “Where it appears”Shortest path from a primary entity: Brand → legalEntities → LegalEntity → names → LegalEntityName.
LegalEntity.names
Fields
Section titled “Fields”| Field | Label | Type | Description |
|---|---|---|---|
name |
Name | String |
The legal entity’s name. |
nameFullTextSearchVector |
String |
The search terms that Enigma makes from name for full-text search. Each term is a normalized word from the name, with its position in the name. |
|
rank |
Rank | Int |
Determines the display order of the attribute, with lower values shown first |
id |
ID | UUID! |
The unique identifier of this object. |
firstObservedDate |
First Observed Date | String |
The earliest date of a source record that supports this attribute or relationship. The source date is, for example, the date when Enigma collected the record or when the source last updated it. Most values have a date, a time, and a UTC offset, but some have the date only. |
lastObservedDate |
Last Observed Date | String |
The latest date of a source record that supports this attribute or relationship. It uses the same source dates and the same format as firstObservedDate. |
legalEntityType |
Legal Entity Type | String |
The legal form of the entity. |
internalId |
String |
A numeric identifier that Enigma assigns to this object when it builds its data. On most attribute objects, id is the UUID form of this number. |
|
internalLegalEntityId |
String |
The internalId of the legal entity that this attribute describes. |
Math fields
Section titled “Math fields”Every record of this type answers count, countDistinct, has, sum, min, max, avg, collect, minDateTime, maxDateTime. Each takes field and an optional conditions. See Selection.
Example
Section titled “Example”query { search(searchInput: { entityType: BRAND name: "Safeway" conditions: { limit: 1 } }) { ... on Brand { id legalEntities(first: 1) { edges { node { names(first: 1) { edges { node { id name nameFullTextSearchVector rank firstObservedDate } } } } } } } }}Response, as returned:
{ "data": { "search": [ { "id": "0f26fbef-3436-4f85-8bcd-31fe12a4f99a", "legalEntities": { "edges": [ { "node": { "names": { "edges": [ { "node": { "id": "0000030c-0002-396e-0000-0b8000000000", "name": "SAFEWAY, INC.", "nameFullTextSearchVector": "'inc':2 'safeway':1", "rank": 0, "firstObservedDate": "1993-01-02 00:00:00+00" } } ] } } } ] } } ] }}