diff --git a/lib/edgedb.ex b/lib/edgedb.ex index f8489e34..f9de7dfc 100644 --- a/lib/edgedb.ex +++ b/lib/edgedb.ex @@ -273,7 +273,7 @@ defmodule EdgeDB do ```iex iex(1)> {:ok, client} = EdgeDB.start_link() iex(2)> {:error, %EdgeDB.Error{} = error} = EdgeDB.query(client, "select UndefinedType") - iex(2)> raise error + iex(3)> raise error ** (EdgeDB.Error) InvalidReferenceError: object type or alias 'default::UndefinedType' does not exist ``` diff --git a/lib/edgedb/types/object.ex b/lib/edgedb/types/object.ex index e16896b9..7d6127f5 100644 --- a/lib/edgedb/types/object.ex +++ b/lib/edgedb/types/object.ex @@ -7,7 +7,7 @@ defmodule EdgeDB.Object do ```iex iex(1)> {:ok, client} = EdgeDB.start_link() iex(2)> %EdgeDB.Object{} = object = - iex(2)> EdgeDB.query_required_single!(client, "\"\" + ...(2)> EdgeDB.query_required_single!(client, "\"\" ...(2)> select schema::ObjectType{ ...(2)> name ...(2)> } @@ -31,7 +31,7 @@ defmodule EdgeDB.Object do ```iex iex(1)> {:ok, client} = EdgeDB.start_link() iex(2)> %EdgeDB.Object{} = object = - iex(2)> EdgeDB.query_required_single!(client, "\"\" + ...(2)> EdgeDB.query_required_single!(client, "\"\" ...(2)> select schema::Property { ...(2)> name, ...(2)> annotations: { @@ -217,7 +217,7 @@ defmodule EdgeDB.Object do ```iex iex(1)> {:ok, client} = EdgeDB.start_link() iex(2)> object = - iex(2)> EdgeDB.query_required_single!(client, "\"\" + ...(2)> EdgeDB.query_required_single!(client, "\"\" ...(2)> select schema::Property { ...(2)> name, ...(2)> annotations: { diff --git a/lib/edgedb/types/set.ex b/lib/edgedb/types/set.ex index 272c9439..23d66642 100644 --- a/lib/edgedb/types/set.ex +++ b/lib/edgedb/types/set.ex @@ -8,7 +8,7 @@ defmodule EdgeDB.Set do ```iex iex(1)> {:ok, client} = EdgeDB.start_link() iex(2)> %EdgeDB.Set{} = - iex(2)> EdgeDB.query!(client, "\"\" + ...(2)> EdgeDB.query!(client, "\"\" ...(2)> select schema::ObjectType{ ...(2)> name ...(2)> } diff --git a/pages/rst/api/api.rst b/pages/rst/api/api.rst index f1b6520e..09ff11c5 100644 --- a/pages/rst/api/api.rst +++ b/pages/rst/api/api.rst @@ -275,7 +275,7 @@ If an error occurs, it will be returned as a ``{:error, exception}`` tuple where iex(1)> {:ok, client} = EdgeDB.start_link() iex(2)> {:error, %EdgeDB.Error{} = error} = EdgeDB.query(client, "select UndefinedType") - iex(2)> raise error + iex(3)> raise error ** (EdgeDB.Error) InvalidReferenceError: object type or alias 'default::UndefinedType' does not exist If a query has arguments, they can be passed as a list for a query with positional arguments or as a list of keywords for a query with named diff --git a/pages/rst/api/edgedb-types.rst b/pages/rst/api/edgedb-types.rst index 84401dc1..35cf7007 100644 --- a/pages/rst/api/edgedb-types.rst +++ b/pages/rst/api/edgedb-types.rst @@ -14,7 +14,7 @@ An immutable representation of an object instance returned from a query. iex(1)> {:ok, client} = EdgeDB.start_link() iex(2)> %EdgeDB.Object{} = object = - iex(2)> EdgeDB.query_required_single!(client, """ + ...(2)> EdgeDB.query_required_single!(client, """ ...(2)> select schema::ObjectType{ ...(2)> name ...(2)> } @@ -38,7 +38,7 @@ in the query to access them from the links. iex(1)> {:ok, client} = EdgeDB.start_link() iex(2)> %EdgeDB.Object{} = object = - iex(2)> EdgeDB.query_required_single!(client, """ + ...(2)> EdgeDB.query_required_single!(client, """ ...(2)> select schema::Property { ...(2)> name, ...(2)> annotations: { @@ -183,7 +183,7 @@ Convert an object into a regular map. iex(1)> {:ok, client} = EdgeDB.start_link() iex(2)> object = - iex(2)> EdgeDB.query_required_single!(client, """ + ...(2)> EdgeDB.query_required_single!(client, """ ...(2)> select schema::Property { ...(2)> name, ...(2)> annotations: { @@ -208,7 +208,7 @@ A representation of an immutable set of values returned by a query. Nested sets iex(1)> {:ok, client} = EdgeDB.start_link() iex(2)> %EdgeDB.Set{} = - iex(2)> EdgeDB.query!(client, """ + ...(2)> EdgeDB.query!(client, """ ...(2)> select schema::ObjectType{ ...(2)> name ...(2)> }