From d2e722688dd22a03778454bf4a356d1cd7a9325b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toma=C5=BE=20Jerman?= Date: Wed, 6 Oct 2021 15:31:16 +0200 Subject: [PATCH] Add missing ref. types to expr. registry --- pkg/qlng/ast_nodes.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/qlng/ast_nodes.go b/pkg/qlng/ast_nodes.go index e1dc115ec..3935dfa89 100644 --- a/pkg/qlng/ast_nodes.go +++ b/pkg/qlng/ast_nodes.go @@ -324,6 +324,8 @@ func (nn parserNodes) ToAST() (out *ASTNode) { // A simplified type registry for the types that QL needs to understand func qlTypeRegistry(ref string) expr.Type { switch ref { + case "ID", "Record", "User": + return &expr.ID{} case "Boolean", "Bool": return &expr.Boolean{} case "Integer":