# `MnemosynePostgres.Queries.MetadataQueries`
[🔗](https://github.com/edlontech/mnemosyne_postgres/blob/main/lib/mnemosyne_postgres/queries/metadata_queries.ex#L1)

Ecto query builders for the node metadata table.

# `base`

```elixir
@spec base(map()) :: Ecto.Query.t()
```

Base query scoped to the current tenant.

# `by_node_ids`

```elixir
@spec by_node_ids(Ecto.Query.t(), [String.t()]) :: Ecto.Query.t()
```

Filters the query to only include rows matching the given node IDs.

# `source`

```elixir
@spec source(map()) :: {String.t(), module()}
```

Returns the `{table_name, schema}` source tuple for the metadata table.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
