1

There's a way to retrive all the fields in a table?

I need to provide a system where the user can create custom field for a certain table

I tried this but got an unexpected crash

let db : Graph = Graph()
let test = Entity(type: "test", graph: db)
test["field1"] = "test1"
test["field2"] = "test2"
test["field3"] = "test3"

let dict = test.properties
dump(dict.keys) // <- crash here, unexpectedly found nil when bla bla

thank you

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.