Skip to content

Commit b4755bf

Browse files
committed
graphql: By default, disable select by specific attributes
It still has some bugs.
1 parent 9c68af6 commit b4755bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

graphql/src/store/prefetch.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ lazy_static! {
2929
static ref ARG_SKIP: String = String::from("skip");
3030
static ref ARG_ID: String = String::from("id");
3131

32-
/// Setting this environment variable to any value will disable the experimental feature "Select by
33-
/// Specific Attribute Names".
32+
/// Setting this environment variable to any value will enable the experimental feature "Select
33+
/// by Specific Attributes".
3434
static ref DISABLE_EXPERIMENTAL_FEATURE_SELECT_BY_SPECIFIC_ATTRIBUTE_NAMES: bool =
35-
std::env::var("DISABLE_EXPERIMENTAL_FEATURE_SELECT_BY_SPECIFIC_ATTRIBUTE_NAMES").is_ok();
35+
!std::env::var("GRAPH_ENABLE_SELECT_BY_SPECIFIC_ATTRIBUTES").is_ok();
3636
}
3737

3838
type GroupedFieldSet<'a> = IndexMap<&'a str, CollectedResponseKey<'a>>;

0 commit comments

Comments
 (0)