We are in process of updating to Apollo 4 and some...
# apollo-kotlin
j
We are in process of updating to Apollo 4 and some of our tests are no longer building due to addition of
factory
parameter in generarted code...what should be passed in for this?
Copy code
public fun <M : WorkOrderTypeMap, Builder : ObjectBuilder<M>> Data(
      factory: BuilderFactory<Builder>,
      resolver: FakeResolver = DefaultFakeResolver(__Schema.all),
      block: Builder.() -> Unit = {},
    ): WorkOrderInfo = buildData(
hmm, we just noticed it's only affecting that class....generated code for other ones doesn't have that
factory
b
WorkOrderType
is an interface right?
j
yes
b
you should be able to pass
WorkOrderType
as the first parameter
j
ca marche!
🎉 1
b
(you can pass other types that implement
WorkOrderType
, depending on your test)