Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add links to "Behavior" sections #910

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion manual-src/modules/ROOT/pages/writing/insert.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ In this guide, you'll see how to insert data in a database using Studio, Console
An Insert query is used to insert data into a TypeDB database.
An `insert` clause is executed once per every result matched by the `match` clause of the same query.
If the `match` clause is omitted, then the `insert` clause is executed exactly once.
For a detailed explanation of the query see the xref:typeql::queries/delete.adoc[] page.
For a detailed explanation of the query see the xref:typeql::queries/insert.adoc[] page.

[#_how_to_send_an_insert_query]
== Sending Insert queries
Expand Down
2 changes: 1 addition & 1 deletion typeql-src/modules/ROOT/pages/statements/abstract.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The `abstract` keyword doesn't use any object, so after the keyword always follo

== Behavior

TypeQL statements with the `abstract` keyword are used in Define queries to define (declare) that the type is abstract.
TypeQL statements with the `abstract` keyword are used in xref:typeql::queries/define.adoc[] to define (declare) that the type is abstract.

An abstract type can't be used to insert a data instance
but can be used to create a subtype or to query (for its subtypes).
Expand Down
2 changes: 1 addition & 1 deletion typeql-src/modules/ROOT/pages/statements/key.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The syntax of a `@key` statement includes:

== Behavior

TypeQL statements with the `@key` keyword can be used only in Define queries.
TypeQL statements with the `@key` keyword can be used only in xref:typeql::queries/define.adoc[].

The `@key` keyword adds a xref:typeql::statements/unique.adoc[unique annotation] constraint,
as well as a cardinality constraint of exactly one.
Expand Down
2 changes: 1 addition & 1 deletion typeql-src/modules/ROOT/pages/statements/owns.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ An optional <<_usage_with_override,override>> can be added at the end.

== Behavior

TypeQL statements with the `owns` keyword can be used only in Define and Undefine queries.
TypeQL statements with the `owns` keyword can be used only in xref:typeql::queries/define.adoc[] and xref:typeql::queries/undefine.adoc[].

The `owns` keyword adds an ability for the subject type to own attributes of
the object attribute type to the schema.
Expand Down
2 changes: 1 addition & 1 deletion typeql-src/modules/ROOT/pages/statements/plays.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ An optional <<_usage_with_override,override>> can be added at the end.

== Behavior

TypeQL statements with the `plays` keyword can be used only in Define and Undefine queries.
TypeQL statements with the `plays` keyword can be used only in xref:typeql::queries/define.adoc[] and xref:typeql::queries/undefine.adoc[].

The `plays` keyword adds an ability to play a role to a schema.

Expand Down
2 changes: 1 addition & 1 deletion typeql-src/modules/ROOT/pages/statements/regex.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The syntax of a `regex` statement includes:

== Behavior

TypeQL statements with the `regex` keyword can be used only in Define queries.
TypeQL statements with the `regex` keyword can be used only in xref:typeql::queries/define.adoc[].

The `regex` keyword adds a constraint on values of attributes of a given attribute type
to be valid strings according to the object regular expression.
Expand Down
2 changes: 1 addition & 1 deletion typeql-src/modules/ROOT/pages/statements/relates.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ An optional <<_usage_with_override,override>> can be added at the end.

== Behavior

TypeQL statements with the `relates` keyword can be used only in Define and Undefine queries.
TypeQL statements with the `relates` keyword can be used only in xref:typeql::queries/define.adoc[] and xref:typeql::queries/undefine.adoc[].

The `relates` keyword adds a new role to a relation type.

Expand Down
2 changes: 1 addition & 1 deletion typeql-src/modules/ROOT/pages/statements/rule.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ rule <rule-label>: when {

== Behavior

TypeQL statements with the `rule` keyword can be used only in Define queries.
TypeQL statements with the `rule` keyword can be used only in xref:typeql::queries/define.adoc[].
To undefine a rule, use the `rule` keyword, followed by the rule's label, and a semicolon.

The `rule` keyword adds a new rule to a schema, or updates an existing rule with the same label.
Expand Down
2 changes: 1 addition & 1 deletion typeql-src/modules/ROOT/pages/statements/unique.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The syntax of a `@unique` statement includes:

== Behavior

TypeQL statements with the `@unique` keyword can be used only in Define queries.
TypeQL statements with the `@unique` keyword can be used only in xref:typeql::queries/define.adoc[].

The `@unique` keyword adds a uniqueness constraint for all attributes of the attribute type
owned by data instances of the subject type.
Expand Down
2 changes: 1 addition & 1 deletion typeql-src/modules/ROOT/pages/statements/value.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The syntax of a `value` statement includes:

== Behavior

TypeQL statements with the `value` keyword can be used only in Define queries.
TypeQL statements with the `value` keyword can be used only in xref:typeql::queries/define.adoc[].

The `value` keyword adds a constraint on values of attributes of a given attribute type
to be of the selected value type only.
Expand Down