![](/img/trans.png)
[英]Graphql Spring boot subscription client
賞金將在 4 天后到期。 此問題的答案有資格獲得+50聲望賞金。 Juggernaut想提請更多人關注這個問題: 我期待問題的答案或文檔參考或解決此問題的示例鏈接。 請不要指向 spring 文檔,因為該示例很簡單且不適用。 我正在嘗試使用 Rsocket 和 spring 啟動為 graphq ...
[英]Graphql Spring boot subscription client
賞金將在 4 天后到期。 此問題的答案有資格獲得+50聲望賞金。 Juggernaut想提請更多人關注這個問題: 我期待問題的答案或文檔參考或解決此問題的示例鏈接。 請不要指向 spring 文檔,因為該示例很簡單且不適用。 我正在嘗試使用 Rsocket 和 spring 啟動為 graphq ...
[英]Implement 2FA in GraphQL
您好,我想使用 GraphQL 實施 2FA。就我而言,我希望我的 API 符合PSD2 。 當我想向用戶發送 OTP 時,這可能嗎?我該如何實現? 以下是 PSD2 對雙因素身份驗證的摘錄: 基於兩個或多個元素的使用的身份驗證,這些元素被歸類為獨立的知識(只有用戶知道的東西)、擁有(只有用戶擁有 ...
[英]GraphQL Query taking in multiple lists as arguments
這是關於將 GraphQL 添加到現有的 Java api 中,它將多個列表作為輸入。 背景: 我有一個基於 Java 的現有 REST API getFooInformationByRecognizer ,它接收識別器列表,其中每個識別器 object 包含一個 id 及其類型,並返回與每個 i ...
[英]Is it possible to do multiple queries in one request with Netflix DGS?
我正在做這樣的查詢: 響應似乎准備返回多個實體。 如何請求多個查詢? ...
[英]How to specify DateTime in GraphQL schema?
我正在為我的項目構建我的 GraphQL 架構,我的一個模型具有 DateTime 格式。 如何在我的 GraphQL 架構上寫出日期格式? 我嘗試了 DateTime 或 Date,但沒有顯示任何內容。 這是 model: 這是我的 GraphQL 架構中的內容: 但它說: 未知類型日期時間 ...
[英]Why is my data not persisted/accessible in an Spring-Boot integration-test with HTTPGraphQLTester and TestEntityManager
我有一個基本的 Spring-Boot 應用程序,其中包含一些 GraphQL 端點和一個 Postgres 數據庫,我想對一個端點運行集成測試。 當我通過 Postman 手動發送請求時,它應該通過 ID 找到一個實體並且這樣做沒有問題。但是當我為 controller 編寫集成測試時它沒有。 在 ...
[英]Simple Spring GraphQL Subscription returning error
我正在嘗試創建一個簡單的 Spring GraphQL 訂閱處理程序。 這是我的 controller: 這是 GraphQL 架構: Spring配置: 當我嘗試使用 spring 托管的 graphiql 在訂閱之上運行時,我收到以下錯誤: 當我使用 Postman 運行相同的 graphql ...
[英]Getting Unsupported token `on` [GraphQL]
問題:我們在查詢中轉到“on”,而 build apollo 抱怨查詢中的 on 關鍵字 (*.graphql) GraphQL 查詢: 錯誤:不支持on令牌(com.apollographql.apollo.compiler.parser.GraphQLDocumentParseExcepti ...
[英]Is there any way to perform GROUP BY operation in GraphQL?
我需要使用表中的特定字段對表中的數據進行分組。 並且在 GraphQL 中找不到 GROUP BY 功能。 有沒有辦法做到這一點? 當前格式: 所需格式: ...
[英]Is any way can we create generic API in GraphQL?
I need to create generic api in graphql using spring boot eg if getAll query returns model class but when in getAll query I sent parameter string wh ...
[英]Unknown thread spawns which ignores the filter chain and fails on async decorator
我目前面臨一個奇怪的問題,我無法在本地重現,但經常在 AWS ECS 中發生,讓應用程序崩潰或運行緩慢。 我們有一個 spring 啟動應用程序,它從傳入的 GraphQL 請求中提取租戶並將租戶設置為ThreadLocal實例。 為了支持 GraphQL Java kickstart 中的Data ...
[英]Graphql null pointer exception even though it is not null
我正在嘗試使用 createPlayer 突變創建一個播放器。 我輸入了 playerDTO 的參數,但我得到了 null 指針異常 這是我的突變: 這是我的 controller 這是我的映射器: ...
[英]Custom scalar Date not recognized by GraphQL java spring boot plugin for unit test
我為我的 controller 編寫了這個單元測試,我的模式包含一個 Date object,它由下面的 DateScalarConfiguration 實現。 當我運行應用程序時沒有問題,但是當我測試它時它給了我一個錯誤。 這是我的代碼: 日期標量配置: 使用此配置: build.gradle ...
[英]GraphQL resolvers are running in okhttp threadpool which is different from root resolvers threadpool
GraphqlRootResolver 在用戶定義的線程池中運行。 但是 GraphqlResolvers 是在 OkHttp 線程池中運行的。 為 http 線程池刪除了 Mdc 上下文。 所以我的問題是當 GraphQL 查詢解析器在用戶定義的線程池中運行時,為什么字段解析器沒有在其中運行? ...
[英]Kickstarter type dictionary equivalent in spring boot graphql starter
賞金將在 8 小時后到期。 此問題的答案有資格獲得+100聲望賞金。 elp想引起對這個問題的更多關注。 使用spring-boot-starter-graphql時 Spring 是使用簡單的名稱來 class 映射。 例如對於突變: Spring 將檢查名為 addCategory 的突變 ...
[英]How to access the complete runtime GraphQLSchema object with Netflix DGS?
我需要在 GraphQL 請求處理之外訪問完整的GraphQLSchema object。 當我直接使用 graphql-java 時,我可以完全控制並控制它。 現在我需要用 Netflix DGS 完成同樣的事情,但找不到如何做到這一點(並跟上運行時更改/稍后重新加載)。 對於更多上下文——我需 ...
[英]Spring Graphql - How to use a custom DataFetcherExceptionHandler and override the default one?
我是 spring graphql 的新手,我試圖實現我自己的 DataFetcherExceptionHandler 以便我可以用我的自定義異常來包裝所有異常。 我已經實現了實現 DataFetcherExceptionHandler 的自定義類,但它似乎仍然使用默認的 SimpleDataFe ...
[英]How can i access request headers in graphql query using java datafetcher environment?
我想獲取在 GraphQl 查詢調用期間傳遞的 header 值。 在 rest api HttpServletRequest.getheader() 的情況下,我們可以事先做一些事情我想從 dataFetchingEnvironment 中獲取它,但是從這個值中獲取的上下文沒有讓我有任何方法從請 ...
[英]Spring GraphQL HttpGraphQlClient - Need to know the exact request body
我正在使用spring-boot-starter-graphql 。 我正在與駐留在另一台服務器上的 GraphQL 端點通信。 除了不記名令牌頭之外,我還使用 GraphQL 端點生成另一種令牌頭,內部稱為 PoP 令牌。 此加密令牌用於驗證請求正文是否未被更改。 該令牌由 http 方法、承載令 ...
[英]Spring GraphQL ignore auth for introspection query
我有一個執行某些身份驗證邏輯的 WebFilter,在調用 chain.filter(exchange) 之前編寫一些上下文。 我正在使用啟用了 GraphiQL 的 Spring GraphQL。 我想跳過 GraphiQL 的身份驗證。 當 GraphiQL 進行內省查詢以顯示模式文檔時。 忽略 ...