Sam Selikoff

Results 241 comments of Sam Selikoff

Definitely could be a candidate. Honestly I wonder if we even need classes – I think if I were rewriting today I'd try to just use functions. Easier to type...

I think Pretender (the HTTP mocking lib Mirage uses under the hood) doesn't distinguish URLs based on query param. So if I were doing this I think you'd need to...

The way pretender works is you access the query params via the request object. Does the route handler fire if you just put this.get(‘movies’)? – Sam > On Jun 4,...

No prob at all - let me know if you have any more questions!

yeah. Sadly hangover from an old/bad api where we either defaulted to fixtures or factories. do you have fixtures defined?

This is gnarly but can you try this to see if it works? ```diff import { Server } from 'miragejs'; export function startMirage(): Server { return new Server({ routes(): void...

Gotcha – thanks for calling this out! Have you done this recently? Would you mind dropping an example as a comment here, or even [editing the doc yourself](https://github.com/miragejs/site/blob/master/src/routes/quickstarts/vue/exclude-from-production.mdx)?

It's not configurable at the moment. The relationships use it as foreign keys, so there'd need to be some work done to PR an option to configure the primary key.

One thing you can do is let Mirage use `id` but then use the Serializer layer to transform the `id` prop to `uuid` or `xid`.

I think you’d want to override normalize and serialize hooks. Might be worth searching old issues, also in ember-cli-mirage for some examples 👍 Also take a look at the serializers...