// FirstX is like First, but panics if an error occurs.
FirstX is like First, but panics if an error occurs.
// FirstX is like First but panics if an error occurs .
func (ftq *FactTypeQuery) FirstX(ctx context.Context) *FactType {
	node, err := ftq.First(ctx)
	if err != nil && !IsNotFound(err) {
		panic(err)
	}
	return node
}
func ( ftq * FactTypeQuery ) FirstX ( ctx context . Context ) * FactType { node , err := ftq . First ( ctx ) if err != nil && ! IsNotFound ( err ) { panic ( err ) } return node }
FirstX is like First, but panics if an error occurs.
FirstX is like First but panics if an error occurs .