Struct schema::QuerySchema
source · pub struct QuerySchema {
pub internal_data_model: InternalDataModel,
/* private fields */
}
Expand description
The query schema defines which operations (query/mutations) are possible on a database, based on a Prisma schema.
Conceptually, a query schema stores two trees (query/mutation) that consist of input and output types.
Fields§
§internal_data_model: InternalDataModel
Internal abstraction over the datamodel AST.
Implementations§
source§impl QuerySchema
impl QuerySchema
pub fn can_resolve_relation_with_joins(&self) -> bool
pub fn has_feature(&self, feature: PreviewFeature) -> bool
pub fn has_capability(&self, capability: ConnectorCapability) -> bool
pub fn capabilities(&self) -> ConnectorCapabilities
pub fn find_mutation_field(&self, name: &str) -> Option<OutputField<'_>>
pub fn find_query_field(&self, name: &str) -> Option<OutputField<'_>>
pub fn find_query_field_by_model_and_action( &self, model_name: Option<&str>, tag: QueryTag ) -> Option<OutputField<'_>>
pub fn find_mutation_field_by_model_and_action( &self, model_name: Option<&str>, tag: QueryTag ) -> Option<OutputField<'_>>
pub fn mutation(&self) -> ObjectType<'_>
pub fn query(&self) -> ObjectType<'_>
pub fn relation_mode(&self) -> RelationMode
pub fn can_native_upsert(&self) -> bool
Auto Trait Implementations§
impl !RefUnwindSafe for QuerySchema
impl Send for QuerySchema
impl Sync for QuerySchema
impl Unpin for QuerySchema
impl !UnwindSafe for QuerySchema
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more