GetAtoms
Atom Queries
There are two primary queries available for retrieving Atom
data:
GetAtoms
: Retrieves a collection of atoms based on specified filters and parametersGetAtom
: Fetches a single atom by its unique identifier (id
)
These Atom
queries are foundational and are used in more complex queries to retrieve data from the Intuition protocol.
GetAtoms
query GetAtoms(
$limit: Int
$offset: Int
$orderBy: [atoms_order_by!]
$where: atoms_bool_exp
) {
atoms_aggregate(where: $where) {
aggregate {
count
}
}
atoms(limit: $limit, offset: $offset, order_by: $orderBy, where: $where) {
# AtomMetadata fields
data
id
image
label
emoji
type
creator {
id
label
image
}
value {
person {
name
image
description
url
}
thing {
name
image
description
url
}
organization {
name
image
description
url
}
}
# AtomTxn fields
block_number
block_timestamp
transaction_hash
creator_id
# AtomVaultDetails fields
vault_id
wallet_id
vault {
position_count
total_shares
current_share_price
positions_aggregate {
aggregate {
count
sum {
shares
}
}
}
positions {
id
account {
label
id
}
shares
}
}
# AtomTriple fields
as_subject_triples {
id
object {
data
id
image
label
emoji
type
creator {
label
image
id
atom_id
type
}
}
predicate {
data
id
image
label
emoji
type
creator {
label
image
id
atom_id
type
}
}
}
as_predicate_triples {
id
subject {
data
id
image
label
emoji
type
creator {
label
image
id
atom_id
type
}
}
object {
data
id
image
label
emoji
type
creator {
label
image
id
atom_id
type
}
}
}
as_object_triples {
id
subject {
data
id
image
label
emoji
type
creator {
label
image
id
atom_id
type
}
}
predicate {
data
id
image
label
emoji
type
creator {
label
image
id
atom_id
type
}
}
}
}
}
Interact with this query in Apollo Sandbox
GetAtom
query GetAtom($id: numeric!) {
atom(id: $id) {
# AtomMetadata fields
data
id
image
label
emoji
type
creator {
id
label
image
}
value {
person {
name
image
description
url
}
thing {
name
image
description
url
}
organization {
name
image
description
url
}
}
# AtomTxn fields
block_number
block_timestamp
transaction_hash
creator_id
# AtomVaultDetails fields
vault_id
wallet_id
vault {
position_count
total_shares
current_share_price
positions_aggregate {
aggregate {
count
sum {
shares
}
}
}
positions {
id
account {
label
id
}
shares
}
}
# AtomTriple fields
as_subject_triples {
id
object {
data
id
image
label
emoji
type
creator {
label
image
id
atom_id
type
}
}
predicate {
data
id
image
label
emoji
type
creator {
label
image
id
atom_id
type
}
}
}
as_predicate_triples {
id
subject {
data
id
image
label
emoji
type
creator {
label
image
id
atom_id
type
}
}
object {
data
id
image
label
emoji
type
creator {
label
image
id
atom_id
type
}
}
}
as_object_triples {
id
subject {
data
id
image
label
emoji
type
creator {
label
image
id
atom_id
type
}
}
predicate {
data
id
image
label
emoji
type
creator {
label
image
id
atom_id
type
}
}
}
triplesPredicateTotal: as_predicate_triples_aggregate {
aggregate {
count
}
}
triplesObjectTotal: as_object_triples_aggregate {
aggregate {
count
}
}
}
}
# Variables
{
"id": "13",
}