Skip to content

Commit

Permalink
Merge branch 'graphql-rust:main' into caido
Browse files Browse the repository at this point in the history
  • Loading branch information
Sytten authored Oct 24, 2024
2 parents 683951f + 0c52c4c commit aa82fd1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ use graphql_client::GraphQLQuery;
schema_path = "tests/unions/union_schema.graphql",
query_path = "tests/unions/union_query.graphql",
)]
pub struct UnionQuery;
pub struct Heights;
```

There is an example [in the tests](./graphql_client/tests/operation_selection).
Expand Down
12 changes: 0 additions & 12 deletions graphql_client_codegen/src/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@ use std::collections::{BTreeMap, BTreeSet};

pub(crate) const DEFAULT_SCALARS: &[&str] = &["ID", "String", "Int", "Float", "Boolean"];

#[derive(Debug, PartialEq, Clone)]
struct StoredObjectField {
name: String,
object: ObjectId,
}

#[derive(Debug, PartialEq, Clone)]
pub(crate) struct StoredObject {
pub(crate) name: String,
Expand Down Expand Up @@ -47,9 +41,6 @@ pub(crate) enum StoredFieldParent {
#[derive(Debug, Clone, Copy, PartialEq, Hash, Eq, PartialOrd, Ord)]
pub(crate) struct ObjectId(u32);

#[derive(Debug, Clone, Copy, PartialEq, Hash, Eq)]
pub(crate) struct ObjectFieldId(usize);

#[derive(Debug, Clone, Copy, PartialEq, Hash, Eq, PartialOrd, Ord)]
pub(crate) struct InterfaceId(usize);

Expand All @@ -68,9 +59,6 @@ pub(crate) struct InputId(u32);
#[derive(Debug, Clone, Copy, PartialEq)]
pub(crate) struct StoredFieldId(usize);

#[derive(Debug, Clone, Copy, PartialEq)]
struct InputFieldId(usize);

#[derive(Debug, Clone, PartialEq)]
pub(crate) struct StoredInterface {
name: String,
Expand Down

0 comments on commit aa82fd1

Please sign in to comment.