In a React Native application with an Elixir/Phoenix back end I am attempting to have a user create a photo that will push to an S3 bucket using an AWS presigned url. I am using the Hex package ex_aws to expose the API. While I am relatively new to…
I'm running an Absinthe GraphQL server which queries a backend, but there are also events coming in from outside (over AMQP), indicating an update has happened (some of which do not include the updated record info).
I can handle the events that…
For example, I'd like to call the inserted_on timestamp created_at in the front end in the following Absinthe schema:
defmodule MyAppWeb.Schema.AccountTypes do
use Absinthe.Schema.Notation
object :user do
field :id, :id
field :email,…
Question: Is there a way to mock some GraphQL types/queries/mutations/subscriptions while 'forwarding' the rest to an existing GraphQL server?
Situation: The application has a schema, part of which has been implemented on the server and the rest is…
My blog app has a Post model that has many Comments.
schema "post" do
field :title, :string
field :content, :string
belongs_to :owner, MyApp.Accounts.User, foreign_key: :owner_id
has_many :comments, MyApp.Content.Comment, foreign_key:…
I've got a big phoenix project using absinthe and on the graphql call, I get the error if the request takes longer than 5s
#PID<0.8144.0> running RLWeb.Endpoint (connection #PID<0.8143.0>, stream id 1) terminated
Server: app.com:80 (http)
Request:…
I'm currently working in a project using GraphQL with Absinthe. I have a problem with the query of multiple tables which has an arg (recieve from GraphQL variables) in the WHERE clause.
I want my SQL to be like this:
SELECT p.*
FROM posts p
JOIN…
I'm stumped trying to debug this
I'm trying to upgrade elixir from 1.7 -> 1.13 along with some dependencies. I incrementally bumped versions to get to this point.
Anyone know of any breaking changes in how absinthe does scalars?
related question.…
I want to have a custom GeoPoint type in my schema and I can't find any example how to do this in a schema types file. The only way I found was using the input_object in the schema file. Is it possible to do it this way using…
I have Absinthe middleware that checks the context for an authenticated user, like so:
defmodule CliftonWeb.Middlewares.CheckAuth do
@behaviour Absinthe.Middleware
require Logger
def call(resolution, _config) do
case resolution.context…
I'm working on an Absinthe GraphQL API for my app. I'm still learning the procedure(so please go easy on me).
I've a Absinthe/GraphQL MyAppWeb.schema.ex file in which I use for my queries and mutations. My question is how do I use this API for…
I re-installed all node modules using npm install run into the error:
Cannot find module 'phoenix' from 'node_modules/@absinthe/socket/compat/cjs/index.js'
It fails first in the @absinthe code:
require('phoenix'); in…
I’m trying to use FunWithFlags.enabled? (ref fwf) inside an absinthe middleware/3 callback but I got the following error:
(ArgumentError) argument error
(stdlib) :ets.lookup(:fun_with_flags_cache, :some_flag)
Stacktrace:
│…
I am currently sending json string in response to an API request in graphql using absinthe. The schema for it looks like this:
object :export_data do
field :resp_data, :json
end
I want to now send a downloadable json file instead of a json…
I am confused by this behavior that I'm seeing with Absinthe.
For a top-level field, e.g.
field :projects, list_of(:project) do
arg :user_id, :string
resolve(&ProjectResolver.list_projects/2)
end
If…