attribute 'hasMany' does not exist...
Closed this issue · 2 comments
Kiel-H-Byrne commented
trying to utilze orion.attribute('hasMany', schema, options)
as referenced in docs http://docs.orionjs.org/v1.7/relationships:
and getting an error:
.meteor/packages/meteor-tool/.1.3.5_1.17pn3ki++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:280
throw(ex);
^
The attribute "hasMany" does not exist
Exited with code: 8
this is how i'm using the feature:
Example.attachSchema(new SimpleSchema({
logs: orion.attribute('hasMany', {
type: [Object],
label: "Logs",
optional: true,
}, {
collection: Logs,
titleField: 'body',
publicationName: 'randoString'
})
});
versions:
orionjs:accounts@1.8.1
orionjs:attributes@1.8.0
orionjs:base@1.8.0
orionjs:collections@1.8.0
orionjs:config@1.8.0
orionjs:core@1.8.0
orionjs:dictionary@1.8.0
orionjs:lang-en@1.8.0
orionjs:materialize@1.8.0
Kiel-H-Byrne commented
When i search packages for registerAttribute
function, i only see four;
Searching 201 files for "registerAttribute"
/.../.meteor/local/build/programs/server/packages/orionjs_attributes.js:
139: orion.attributes.registerAttribute = function (name, attribute) { // 90
185: orion.attributes.registerAttribute('createdBy', { // 1
237: orion.attributes.registerAttribute('createdAt', { // 1
277: orion.attributes.registerAttribute('updatedBy', { // 1
327: orion.attributes.registerAttribute('updatedAt', { // 1
if that helps....
Kiel-H-Byrne commented
Silly me...
had to add the orionjs:relationships
package...