vaticle / typedb

TypeDB: the polymorphic database powered by types
https://typedb.com
Mozilla Public License 2.0
3.72k stars 337 forks source link

Attribute fetch should trigger reasoning #6952

Closed flyingsilverfin closed 7 months ago

flyingsilverfin commented 7 months ago

Description

Fetching attributes should trigger reasoning if there are rules to apply and return inferred ownerships, as well as stored ones.

Environment

  1. TypeDB distribution: All
  2. TypeDB version: 2.25.x
  3. Environment: All
  4. Client and version: -
  5. Other details: -

Reproducible Steps

  1. Set up

    • define a schema with an inferred attribute ownership
  2. Test/Query

Run a fetch query in a transaction with inference enabled

  1. Unexpected result

The inferred attributes will be absent.

Expected result

Inferrable attribuet is present.