Get in serialize (normalize) params passed with store.queryRecord

Hi, I’m sure it’s impossible, but I will ask to be sure. I have a serialize where I have normalize function, so what I want is, create an ID(hash.id), but ID should be some query params I send to server.

Example: let params = {query1: ‘bla’, query2: ‘blabla’}; promQuery = self.store.queryRecord(‘comparetimeframe’, params);

So this params I should have in my normalize function.

Any ideas?

I don’t think you’ll have access to query params in your serializer. You’ll probably need to override queryRecord in the adapter so that you can intercept the response and generate ids based on the query params.

1 Like

Got it, I can return the promise

thanks :slight_smile: