第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

在GraphQL中投射InputType對象(Apollo)

在GraphQL中投射InputType對象(Apollo)

四季花海 2019-04-17 23:15:20
我有這種類型的列表(Address是我的java類):List<Address> addresses = new ArrayList<>();public class Address {...}我要執(zhí)行這種類型的請求:apolloClient = ApolloClient.builder()         .serverUrl(mContext.getString(R.string.graphqlUrl))         .okHttpClient(okHttpClient)         .addCustomTypeAdapter(CustomType.LISTOFMAPTOOBJECT, new AddressCustomTypeAdapter().customTypeAdapter())         .build();apolloClient.mutate(         UpdateProfileAddressesMutation.builder()                 .addresses(?)                 .build()).enqueue(new ApolloCall.Callback<UpdateProfileAddressesMutation.Data>() {...});但我不知道我要將什么作為參數(shù)發(fā)送到.addresses (?)。此方法要求我發(fā)送一個AddressInput的ArrayList,它是一個graphql類autogenerate。public final class AddressInput implements InputType { ... }如何在AddressInput中轉(zhuǎn)換我的地址?如果我嘗試類似的東西AddressInput ad = new AddressInput();我有以下錯誤“無法從外部包訪問”
查看完整描述

1 回答

  • 1 回答
  • 0 關(guān)注
  • 1119 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號