Comments (7)
No. It means that $populate
is interpreted as a query parameter and not as a special parameter. I should have a fix for this shortly.
from feathers-reactive.
Probably very similar to #56 and #53. Non-standard parameters are treated as normal fields, there should be a way to specify fields to exclude when checking a query for reactivity (although I'm surprised it still doesn't work with the always
strategy).
from feathers-reactive.
Good Morning, i read that but do not understand what this finally means?
Dies $populate simply not work reactive?
from feathers-reactive.
@daffl , has there been any update related to $populate issue?
I have been trying to populate a query without success.
These are the schemas:
module.exports = function (app) {
const mongooseClient = app.get('mongooseClient');
const { Schema } = mongooseClient;
const channels = new Schema({
name: String,
type: String,
description: String,
hashtags: [String],
fbCodeUrl: String,
parent: {
type: Schema.Types.ObjectId,
ref: 'channels'
},
children: [{
type: Schema.Types.ObjectId,
ref: 'channels'
}],
creator: {
type: Schema.Types.ObjectId,
ref: 'users'
},
admins: [{
type: Schema.Types.ObjectId,
ref: 'users'
}],
threads: [{
thread: {
type: Schema.Types.ObjectId,
ref: 'threads'
},
timeLastActive: { type: Date, default: Date.now }
}],
initializationPermissions: {
customer: Boolean,
channelAdmin: Boolean
},
actionButtons: {
type: Schema.Types.ObjectId,
ref: 'fbButtonsSet'
},
greeting: String,
includeActionButtons: {
type: Boolean,
default: false
},
customers: [{
type: Number,
ref: 'customers'
}]
});
return mongooseClient.model('channels', channels);
};
module.exports = function (app) {
const mongooseClient = app.get('mongooseClient');
const { Schema } = mongooseClient;
const users = new Schema({
email: {type: String, unique: true},
password: { type: String },
name: String,
subordinates: [{
type: Schema.Types.ObjectId,
ref: 'users'
}],
googleId: { type: String },
facebookId: { type: String },
facebook: {
token: String,
name: String,
email: String
},
timeJoined: { type: Date, default: Date.now },
isVerified: { type: Boolean },
verifyToken: { type: String },
verifyExpires: { type: Date },
verifyChanges: { type: Object },
resetToken: { type: String },
resetExpires: { type: Date }
}, {
timestamps: true
});
return mongooseClient.model('users', users);
};
and this is the query which is supposed to populate channel with user:
app.service('channels').find({query: { "$populate": 'creator', _id: [channel_id]}}).then(channelsInfo => {...});
from feathers-reactive.
Is there any fix to this?
from feathers-reactive.
You have to got through the query (https://github.com/feathersjs-ecosystem/feathers-reactive/blob/master/src/strategies.js#L11 and https://github.com/feathersjs-ecosystem/feathers-reactive/blob/master/src/strategies.js#L35) and remove properties that start with $
.
from feathers-reactive.
@baljeet @ngamulin You can see my issue #82 for an example of how we solved this without a lot of extra code.
from feathers-reactive.
Related Issues (20)
- An in-range update of webpack is breaking the build 🚨 HOT 8
- Sequelize query with $like throws unknown operation $like error HOT 3
- An in-range update of webpack-cli is breaking the build 🚨 HOT 5
- An in-range update of @types/feathersjs__feathers is breaking the build 🚨 HOT 4
- An in-range update of babel-plugin-add-module-exports is breaking the build 🚨 HOT 2
- An in-range update of babel-loader is breaking the build 🚨 HOT 1
- `@feathersjs/adapter-commons` dependency
- Typings support for feathers-reactive HOT 3
- An in-range update of webpack is breaking the build 🚨 HOT 2
- How force subscribe to fetch agian HOT 4
- How to unsubscribe() ? HOT 2
- Dove Support HOT 7
- Allow to Re-fetch all data when using smart listStrategy
- Hook generating patched/updated event before created event generates doublons
- Cannot call addListener on the client service connection HOT 14
- Cannot use import statement outside a module on v0.10.0 HOT 4
- Adding watch() in Angular HOT 1
- Failure to import in v0.10 HOT 3
- Sort property not available on objects raises an error
- Error: Cannot find namespace 'sift'. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from feathers-reactive.