Packages
rust_graphql_parser
0.1.0
GraphQL parser implemented as a nif in Rust using Rustler. Converts GraphQL documents to an Absinthe.Language representation.
Current section
Files
Jump to
Current section
Files
lib/graphql_parser/native.ex
defmodule GraphQLParser.Native do
@moduledoc false
use Rustler,
otp_app: :rust_graphql_parser,
crate: :graphqlparser_native
# When loading a NIF module, dummy clauses for all NIF function are required.
# NIF dummies usually just error out when called when the NIF is not loaded, as that should never normally happen.
def parse_query(_arg1), do: :erlang.nif_error(:nif_not_loaded)
end