goofballLogic / ld-query

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

Documentation mentions a constructor pattern that doesn't work #7

Closed gareth-robinson closed 7 years ago

gareth-robinson commented 7 years ago

The README.md mentions two constructor patterns

var context = LD( { ... etc. } );
var doc = context( data );

or

var doc = LD( data, { ... context ... } );

only the latter actually works. The former gives a 'Cannot convert undefined or null to object' error

goofballLogic commented 7 years ago

yup thats a bug

gareth-robinson commented 7 years ago

See https://github.com/goofballLogic/ld-query/pull/8

goofballLogic commented 7 years ago

Closed by #8