goofballLogic / ld-query

Querying JSON-LD
MIT License
20 stars 6 forks source link

Should @type be "final" #21

Closed comopra closed 7 years ago

comopra commented 7 years ago

Currently, if you query for @id, @value or @index, you get the literal value back, rather than a QueryNode(s). Currently querying for @type returns QueryNode - shouldn't it also return the value instead? If there's more than one @type, an array of the literal values could be returned.

goofballLogic commented 7 years ago

Hmm. Probably would work. What do you think @gareth-robinson ?

gareth-robinson commented 7 years ago

Yes, that would seem to be the behaviour we should expect.

goofballLogic commented 7 years ago

@gareth-robinson could you check this commit for me?

gareth-robinson commented 7 years ago

Yep, looks fine